Timezone trouble due to timestamps
Reported by Marcel | September 22nd, 2009 @ 05:00 PM | in Hobo 1.0 - Final
There seem to be problems with handling time (and time zone), making the time in fields shift away from the original value with every edit.
To repeat the problem, do the following:
% hobo test
% cd test
% history
% ./script/generate hobo_model_resource sometime snapshot:timestamp
% ./script/generate hobo_migration
["m" Return Return]
% ./script/server
Then switch to your browser, point it to your Hobo URL, create a user and start creating a "Sometimes" object. Note the time you entered before you save it. Notice that the displayed time is modified by your timezone offset when it is displayed. Edit it, save, and it is now twice the TZ offset away from the time you originally entered. This is obviously absolutely unusable when the database should contain time information besides created_at and updated_at.
Trying several of the Rails suggestions did not help. My configuration: The latest Gems (Rails 2.3.4, Hobo 0.8.8)
Comments and changes to this ticket
-
Betelgeuse September 23rd, 2009 @ 09:15 PM
To get timezone to work properly you need ticket 473 too. I am not sure if this is a different issue or a duplicate.
-
Bryan Larsen October 14th, 2009 @ 03:47 PM
- Tag changed from bug, datetime to datetime, defect
- State changed from new to resolved
- Milestone set to Hobo 1.0 - Final
the bug fix for bug 473 fixes this bug for me. Thanks for the detailed bug report.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป