internal > dates > Bug (approved)

dates are changing in a mysterious way / #1499

Summary

approved
Aug 7, 2006
100%
Oct 26, 2006
Aug 7, 2006 / tino
Oct 27, 2006 / pixtur
pixtur, tino
 

Attached files

Summary
switching_times_05.jpg
switching_times_05.jpg

90202 bytes / ID 1706 / Aug 22, 2006
Show Details
switching_times_06.jpg
switching_times_06.jpg

86921 bytes / ID 1707 / Aug 22, 2006
Show Details
 
Hey Tom,

here's some feedback for you!
  • the times of tasks
    • always the same time when creating a task (02:00)
    • (Planned Start, Planned End) are switching after submit the changes of the task (+2h)
    • when you change this task again, the times are switching again (but now -4h!)
  • times of efforts
    • booking an effort with duration 2h has a displayed duration of 22h after submit (and of course the date is also switched a day back!)
    • change this effort, the times are switching back (-4h)

Issue report

Minor
Have not tried
Mac OS X
0.065
 

10 Comments

pixtur

Aug 8, 2006
version 5
Please relogin
Hi Tino,

please try to relogin.

Then go to systemInfo (see Footer)...

For me it's:

Timezone detection
  • time-offset for user: 6910sec
  • renderDateHtml(): Heute, 17:58
  • original db-string (should be GMT): 2006-08-07 16:08:16
  • strToClienttime(): 1154973516
  • gmdate:(strToClientTime) 17:58:36
  • strToTime(): 1154959696
  • date(strToTime): 16:08:16
What's your output?


Could you be a little bit more precise on "creating tasks"?
  • Where do you click to create it?
  • Where is is which time displayed?
tom

tino

Aug 8, 2006
version 3
Reply to Please relogin
Hello Tom,

localhost (there I'm admin, of course), my output is
  • time-offset for user: 7201sec
  • renderDateHtml(): Today, 18:10
  • original db-string (should be GMT): 2006-08-07 16:10:10
  • strToClienttime(): 1154974212
  • gmdate:(strToClientTime) 18:10:12
  • strToTime(): 1154959810
  • date(strToTime): 16:10:10
Hope it helps.

tino

Aug 8, 2006
version 7
Being more precise...with screenshots
switching_times_01.jpg

switching_times_02.jpg

switching_times_03.jpg

switching_times_04.jpg

By the way, the upload of attachments in a task doesn't work!

pixtur

Aug 10, 2006
Please try again...
I fixed the behavior of timestamp form elements. It works for me, now.

tom

tino

Aug 22, 2006
version 2
Reply to Please try again...
Hello Tom,

I have still a problem with the time of efforts!

Creating an effort with a duration of 3h is displayed as 1h!
An the "Creation Time" of the effort is displayed with 02:00 (this was typically for new task while the timestuff doesn't work for this).

switching_times_05.jpg

switching_times_06.jpg

tino

Aug 31, 2006
Hey Tom
Could you reproduce the failure with the efforts?

tino

pixtur

Oct 13, 2006
version 2
confirmed...
            /**
            * NOTE:
            * - Durations are stored with two datetimes in GMT. The first is
            *   starting at 00:00:00 GMT the second defined the distant also in GMT.
            *   Since the edit form would try to convert the time_end into client time
            *   we overwrite it here. This might be called a hack.
            */
            $effort->time_end=clientTimeStrToGMTString($effort->time_end);


should work now... (hopefully).

madlyr

Oct 17, 2006
how to change time in streber to GMT + X?
Timezone detection
  • time-offset for user: 7210sec
  • renderDateHtml(): Dzisiaj (today), 15:41
  • original db-string (should be GMT): 2006-10-17 13:41:47
  • strToClienttime(): 1161099717
  • gmdate:(strToClientTime) 15:41:57
  • strToTime(): 1161085307
  • date(strToTime): 13:41:47
phpInfo shows:
date.timezone Europe/Warsaw

Why Steber displays not proper time (-2 h).
How to enable time zone (in config) GMT + 2?
New effort has starting time based on original db-string (should be GMT): 2006-10-17 13:41:47, which is wrong time.

pixtur

Oct 17, 2006
This might be a problem of the timezone auto detection...
I wrote some documentation on times: times and dates in streber

Could you print the about example again and provide your correct time as it should be?

Adjusting the user's time zone requires implementation of add time zone drop down list to person profil

pixtur

Oct 18, 2006
 

Comment / Update