phpMiX.org :: Open Source eXperiments

 
All events 1 day off.
Select messages from
# through # FAQ
[/[Print]\]
 
phpMiX.org -> mxBB Module: mx_calsnails

#1: All events 1 day off. Author: jpsndtek PostPosted: Mon Feb 02, 2004 2:36 am
    —
First of all, great module. Second, when I enter in an event, say for February 18-22 in the calendar. In the small Events block it shows everything being 1 day off. Such as that event being on the 17-21... But in the regular calendar it shows the correct dates. 

#2: Re: All events 1 day off. Author: markus PostPosted: Mon Feb 02, 2004 1:46 pm
    —
Hi!

There is a known bug in Calendar Lite code related to Timezone offsets (already reported in mx_calsnails release notes).
http://www.snailsource.com/forum/viewtopic.php?t=1287

But I'm not sure if this is affecting you.

Which is your board TZ ?

Also a link would help me see if there is something "special" with your configuration.


Cheers
 

#3: Re: All events 1 day off. Author: jpsndtek PostPosted: Mon Feb 02, 2004 6:36 pm
    —
It's set at GMT - 8 right now. You can see it here:

http://www.norcalbigdawgs.net/index.php

Look at the calendar in the bottom left and see the events are the 18-22 while the calendar of events on the upper right shows 17-21...
 

#4: Re: All events 1 day off. Author: markus PostPosted: Tue Feb 03, 2004 9:48 pm
    —
Ok, this is the problem, as reported to SnailSource (see my previous post), Calendar Lite code stores dates as entered by the user, but then shows those dates applying the User Timezone setting.

For instance, following your example, your create an event with the following dates:
Start: 2004-02-18 (not entering time, assume 00:00h here)
End : 2004-02-22 (also 00:00h)

Then the code stores those dates ASIS. You can check this using phpMyAdmin to run a query against the events table.

When (happy) you go and display that event... guess what, you see:
Start: 2004-02-17 (which is 2004-02-18 00:00h - 8 GMT = 2004-02-17 14:00h)
End : 2004-02-21 (same problem here)

Weird! ...I know, so I reported this problem to SnailSource... waiting for a solution, cause when I ported this module I tried to minimize all changes to Martin's code, making it easy to re-port new releases.

I was waiting for that SnailSource solution just because there are various approaches to solve this situation, all are pretty complicated.

Now this module is MX official, I don't know which approach they will prefer about this...

For now, IMO, the only solution is set Timezone as GMT (0) for board (and user) settings.

Cheers
 

#5: Re: All events 1 day off. Author: jpsndtek PostPosted: Wed Feb 04, 2004 7:41 pm
    —
Ah ok, thank you very much sir!

Looking forward to an update or fix for it Very Happy
 

#6: Re: All events 1 day off. Author: Time-Raider PostPosted: Sat Mar 27, 2004 7:37 pm
    —
I have the same problem. does there exist already a solution?
since Sun Oct 19, 2003 on the to do list Rolling Eyes
 

#7: Re: All events 1 day off. Author: markus PostPosted: Sat Mar 27, 2004 8:10 pm
    —
Not yet. Still waiting for a solution from Snailsource, sorry.

http://www.snailsource.com/forum/viewtopic.php?t=1287&highlight=to-do

Crying or Very sad
 

#8: Re: All events 1 day off. Author: Time-Raider PostPosted: Sat Mar 27, 2004 9:00 pm
    —
ok thx for fast answer, but is it really so difficult to fix that?
and why is it fixed in the calendar of snailsource?
 

#9: Re: All events 1 day off. Author: markus PostPosted: Sun Mar 28, 2004 12:02 am
    —
Time-Raider wrote:
and why is it fixed in the calendar of snailsource?

Snailsource timezone is GMT, so no offset between the way dates are stored and displayed.

Time-Raider wrote:
ok thx for fast answer, but is it really so difficult to fix that?

I wrote this module based on Calendar Lite with the idea to minimize any change to simplify the process of re-packing it as MX module.

...in fact there are various approaches to solve this issue, but doing so will change a lot Martin's code. That's why I decided to wait for a solution.
 

#10: Re: All events 1 day off. Author: Time-Raider PostPosted: Sun Mar 28, 2004 12:55 pm
    —
and when I set forum time to GMT and the user the time to GMT+1 would it work than? 

#11: Re: All events 1 day off. Author: markus PostPosted: Mon May 31, 2004 3:47 pm
    —
This error is also reported at SnailSource (by Johnny_E):
http://www.snailsource.com/forum/viewtopic.php?t=2092

And finally, I decided to post a possible solution at MX site:
http://www.mx-system.com/forum/viewtopic.php?p=22252#22252


Cheers
 




phpMiX.org -> mxBB Module: mx_calsnails


output generated using printer-friendly topic mod. All times are GMT + 1 Hour

 
Page 1 of 1

Powered by phpBB © 2001, 2005 phpBB Group