Plans - Forum Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist     RegisterRegister  ProfileProfile   Log inLog in
Time problem

 
Post new topic   Reply to topic    Plans - Forum Forum Index » Problems
View previous topic :: View next topic  
Author Message
rdurand



Joined: 30 Mar 2006
Posts: 13

PostPosted: Thu Mar 30, 2006    Post subject: Time problem Reply with quote

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
View user's profile Send private message
daltonlp
Site Admin


Joined: 24 Nov 2003
Posts: 1499

PostPosted: Thu Mar 30, 2006    Post subject: Reply with quote

I'm still unable to duplicate the problem locally Sad Do you have an URL I can take a look at?

Thanks,
- Lloyd
Back to top
View user's profile Send private message
rdurand



Joined: 30 Mar 2006
Posts: 13

PostPosted: Thu Mar 30, 2006    Post subject: Reply with quote

Sorry, should have put this in my original post
http://www.sgecal.com
may not have propogated , if so use
http://64.38.25.98/~sst/

give me a moment, need to remove a password
Back to top
View user's profile Send private message
rdurand



Joined: 30 Mar 2006
Posts: 13

PostPosted: Thu Mar 30, 2006    Post subject: Reply with quote

How did you go on this one ? Any luck ?
Back to top
View user's profile Send private message
daltonlp
Site Admin


Joined: 24 Nov 2003
Posts: 1499

PostPosted: Thu Mar 30, 2006    Post subject: Reply with quote

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
View user's profile Send private message
rdurand



Joined: 30 Mar 2006
Posts: 13

PostPosted: Thu Mar 30, 2006    Post subject: Reply with quote

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
View user's profile Send private message
daltonlp
Site Admin


Joined: 24 Nov 2003
Posts: 1499

PostPosted: Thu Mar 30, 2006    Post subject: Reply with quote

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
View user's profile Send private message
rdurand



Joined: 30 Mar 2006
Posts: 13

PostPosted: Thu Mar 30, 2006    Post subject: Reply with quote

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
View user's profile Send private message
rdurand



Joined: 30 Mar 2006
Posts: 13

PostPosted: Thu Mar 30, 2006    Post subject: Reply with quote

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
View user's profile Send private message
daltonlp
Site Admin


Joined: 24 Nov 2003
Posts: 1499

PostPosted: Thu Mar 30, 2006    Post subject: Reply with quote

Wow, that is unfortunate Sad If you ever consider switching, dreamhost.com has been a wonderful host for Plans for many years.

- Lloyd
Back to top
View user's profile Send private message
rdurand



Joined: 30 Mar 2006
Posts: 13

PostPosted: Fri Mar 31, 2006    Post subject: Reply with quote

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
View user's profile Send private message
rdurand



Joined: 30 Mar 2006
Posts: 13

PostPosted: Fri Mar 31, 2006    Post subject: Reply with quote

perl -e "use Time::Local;print timegm(0,0,9,30,3,2006)"
reported "1146387600" as you predicted
Back to top
View user's profile Send private message
daltonlp
Site Admin


Joined: 24 Nov 2003
Posts: 1499

PostPosted: Fri Mar 31, 2006    Post subject: Reply with quote

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
View user's profile Send private message
rdurand



Joined: 30 Mar 2006
Posts: 13

PostPosted: Sat Apr 01, 2006    Post subject: Reply with quote

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
View user's profile Send private message
rdurand



Joined: 30 Mar 2006
Posts: 13

PostPosted: Sat Apr 01, 2006    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Plans - Forum Forum Index -> Problems All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group / Oranja by Lessthaneric.net