| View previous topic :: View next topic |
| Author |
Message |
rdurand
Joined: 30 Mar 2006 Posts: 13
|
Posted: Thu Mar 30, 2006 Post subject: Time problem |
|
|
| I have the same issue as reported by someone else, that if I enter 9am I get 8.59 am. This drives me nuts. It's worse if you put in an "all day" event because then instead of starting at 12:00am it starts at 11:59pm, which means it start the previous day. Any help to solve this would be greatly appreciated. I've futzed with time zones to try and compensate but not successfully. |
|
| Back to top |
|
 |
daltonlp Site Admin
Joined: 24 Nov 2003 Posts: 1499
|
Posted: Thu Mar 30, 2006 Post subject: |
|
|
I'm still unable to duplicate the problem locally Do you have an URL I can take a look at?
Thanks,
- Lloyd |
|
| Back to top |
|
 |
rdurand
Joined: 30 Mar 2006 Posts: 13
|
|
| Back to top |
|
 |
rdurand
Joined: 30 Mar 2006 Posts: 13
|
Posted: Thu Mar 30, 2006 Post subject: |
|
|
| How did you go on this one ? Any luck ? |
|
| Back to top |
|
 |
daltonlp Site Admin
Joined: 24 Nov 2003 Posts: 1499
|
Posted: Thu Mar 30, 2006 Post subject: |
|
|
None at all - I've been racking my brains. I'm starting to wonder if it's some goofy "leap-second" thing.
- Lloyd |
|
| Back to top |
|
 |
rdurand
Joined: 30 Mar 2006 Posts: 13
|
Posted: Thu Mar 30, 2006 Post subject: |
|
|
Just FYI, the server info is
Operating system Linux
Kernel version 2.6.9-34.ELsmp
Machine Type i686
Apache version 1.3.34 (Unix)
PERL version 5.8.7
PHP version 4.4.2
MySQL version 4.1.13-standard
I'm accessing via an XP laptop, using firefox (but same problem when I tried IE) |
|
| Back to top |
|
 |
daltonlp Site Admin
Joined: 24 Nov 2003 Posts: 1499
|
Posted: Thu Mar 30, 2006 Post subject: |
|
|
If you have command-line access to the server, can you try these two commands?
perl -e "use Time::Local;print timegm(0,0,9,30,3,2006)"
This should print "1146387600" (the unix timestamp for 9:00 am, April 3, 2006). Then try:
perl -e "@a=gmtime 1146387600;print $a[0];"
This should print "0" (the "minutes" part of the time for that same timestamp).
- Lloyd |
|
| Back to top |
|
 |
rdurand
Joined: 30 Mar 2006 Posts: 13
|
Posted: Thu Mar 30, 2006 Post subject: |
|
|
| unfortunately I don't have command line access. I tried uploading a batch file with these commands, the file seemed to execute OK once i did a chmod, but didn't recognise the command perl. Probably no surprise to you that it didn't but as the ftp client I have is my only access, I thought it was worth a shot. |
|
| Back to top |
|
 |
rdurand
Joined: 30 Mar 2006 Posts: 13
|
Posted: Thu Mar 30, 2006 Post subject: |
|
|
| just checked further - shell access is not avalable on my host unless you have a dedicated server [package (which I don't) |
|
| Back to top |
|
 |
daltonlp Site Admin
Joined: 24 Nov 2003 Posts: 1499
|
Posted: Thu Mar 30, 2006 Post subject: |
|
|
Wow, that is unfortunate If you ever consider switching, dreamhost.com has been a wonderful host for Plans for many years.
- Lloyd |
|
| Back to top |
|
 |
rdurand
Joined: 30 Mar 2006 Posts: 13
|
Posted: Fri Mar 31, 2006 Post subject: |
|
|
| Just reinstalled plans from start. Problem remains. Interesting thing is that all the pre-installed holidays are suffering the 1 day too early problem (as they are all-day events). Thanks for the tip on dreamhost, may well do this sometime in the future. In the meantime I want to get plans working on my host. Plans really is good , which is why I am persisting ! |
|
| Back to top |
|
 |
rdurand
Joined: 30 Mar 2006 Posts: 13
|
Posted: Fri Mar 31, 2006 Post subject: |
|
|
perl -e "use Time::Local;print timegm(0,0,9,30,3,2006)"
reported "1146387600" as you predicted |
|
| Back to top |
|
 |
daltonlp Site Admin
Joined: 24 Nov 2003 Posts: 1499
|
Posted: Fri Mar 31, 2006 Post subject: |
|
|
The fact that this affects existing elements indicates an issue with the server's time calculations.
How about the second perl command? What does that print?
- Lloyd |
|
| Back to top |
|
 |
rdurand
Joined: 30 Mar 2006 Posts: 13
|
Posted: Sat Apr 01, 2006 Post subject: |
|
|
Sorry, forgot to include. Apprently the result to
perl -e "@a=gmtime 1146387600;print $a[0];"
was
ARRAY(0x8410180)
(I had to ask the tech support guys to run these since I don't have command lime access) |
|
| Back to top |
|
 |
rdurand
Joined: 30 Mar 2006 Posts: 13
|
Posted: Sat Apr 01, 2006 Post subject: |
|
|
| Well I gave up, uploaded plans to another host, works fine now. Cost me extra money but the only quick solution I could think of. If you do come up with a "fix" that compensates for whatever the heck the server was doing that might be good for others who experience the same problem. Thanks for your rapid response on my questions. |
|
| Back to top |
|
 |
|