Cannot update time in Editor Window

Found a bug? Tell us!!
Post Reply
LazyBadger
Regular
Posts: 176
Joined: Mon Aug 25, 2008 12:25 pm
Location: Russia
Contact:

Cannot update time in Editor Window

Post 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
Quis custodiet ipsos custodes?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Cannot update time in Editor Window

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
LazyBadger
Regular
Posts: 176
Joined: Mon Aug 25, 2008 12:25 pm
Location: Russia
Contact:

Re: Cannot update time in Editor Window

Post 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
Quis custodiet ipsos custodes?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Cannot update time in Editor Window

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
LazyBadger
Regular
Posts: 176
Joined: Mon Aug 25, 2008 12:25 pm
Location: Russia
Contact:

Re: Cannot update time in Editor Window

Post 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
Quis custodiet ipsos custodes?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Cannot update time in Editor Window

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply