Actual Posting Time
Reported by cowbird | June 23rd, 2008 @ 02:48 PM | in 2.0 rc1
I'm not sure if this is feasible or not, but is it possible that the Timestamp could update itself to the time when the user presses the 'Publish' button. I do enjoy being able to write entries and give them dates in the past, as I did when my database backup failed for my upgrade, but under normal circumstances, it often takes some time to write a post, so by the time you hit publish, 5 or 30 minutes may have passed depending on the length of the post.
For accuracy's sake, shouldn't there be a setting to let the user choose either manual or live timing?
Comments and changes to this ticket
-

ronin-17262 (at lighthouseapp) June 23rd, 2008 @ 02:56 PM
For accuracy's sake, shouldn't there be a setting to let the user choose either manual or live timing?
That sounds like the wrong solution to the problem.
The current time is used when no value is provided, so perhaps that field should just default to being empty.
-
cowbird June 23rd, 2008 @ 02:58 PM
I like your idea as well, thats a much better solution. If the field is cleared by default, perhaps a tiny help link could be placed next to it containing the appropriate format should someone want to do their own custom time.
-

-
Alex Suraci June 23rd, 2008 @ 03:31 PM
It should already do this. A hidden field called "original_time" is used whether or not you changed the field's value. If you didn't it just uses the current time instead of the field.
$timestamp = (!empty($_POST['created_at']) and (!isset($_POST['original_time']) or $_POST['created_at'] != $_POST['original_time'])) ? when("Y-m-d H:i:s", $_POST['created_at']) : datetime() ; -
Alex Suraci June 23rd, 2008 @ 06:28 PM
- → State changed from new to invalid
Tested it and it worked fine for me, after a minor Timezone fix.
Please Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
