Page 1 of 1

Cannot update time in Editor Window

Posted: Sun Jun 13, 2010 12:09 pm
by LazyBadger
On creating-editing entry we have "Update to current time" button, but it works (at least for me) only in Opera (10.53 and below) and doesn't work in Safari and FireFox

Re: Cannot update time in Editor Window

Posted: Sun Jun 13, 2010 12:50 pm
by garvinhicking
Hi!

Hm, works here for me in all browsers. Which s9y version are you using? Do you get javascript errors? Do you have javascript properly enabled in your other browsers?

Regards,
Garvin

Re: Cannot update time in Editor Window

Posted: Sun Jun 13, 2010 2:59 pm
by LazyBadger
I tried in 1.4.1-1.5.3. No errors, JS enabled, but - in onUpdate event I see static text as new value, identical to time of opening window

Re: Cannot update time in Editor Window

Posted: Mon Jun 14, 2010 12:38 pm
by garvinhicking
Hi!

Yes, that's right. The update time button is meant to do this:

You open the "create entry" page on 2011-01-01 12:00 and write up an entry. You save it as a draft, edit it on the next day, and then you s9y keeps the original date of 2011-01-01 12:00. But you want the entry published on the current day, so you hit the button and it updates to 2011-01-02 13:37 for example.

It always sets the time to the system time of your server when the page was opened. I do see now that one could interpret it differently to always insert the current browser time, but that's not how it is implemented right now...

Regards,
GArvin

Re: Cannot update time in Editor Window

Posted: Mon Jun 14, 2010 6:00 pm
by LazyBadger
OK, grok now
Will you accept patch, which will update timestamp with current client's date-time in onclick?
UseCase: sometimes I write new record in my blog rather long time: tens of minutes, more than hour... and always want to see as recorded time moment when I finished writing
Currently I have to reopen for edit, update time, save - but I'm too lazy for such useless actions

Re: Cannot update time in Editor Window

Posted: Mon Jun 14, 2010 10:54 pm
by garvinhicking
Hi!

Yes, sure. I actually think we had the discussion earlier at some point, but I don't really remember the outcome of it, or if there was any reason for the current beavhoir. Maybe it was related to timezones, when the server and client timezones are different. I don't really remember, but a patch would be fine :)

Regards,
Garvin