All events 1 day off.
 
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.   printer-friendly view    phpMiX.org Forum Index -> mxBB Modules -> mxBB Module: mx_calsnails
View previous topic :: View next topic  
Author Message
jpsndtek
Starter
Starter


Joined: 26 Nov 2003
Posts: 3

PostPosted: Mon Feb 02, 2004 2:36 am    Post subject: All events 1 day off. Reply with quote

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. 
Back to top
View user's profile Send private message
markus
[Administrator]
[Administrator]


Joined: 28 Jul 2003
Posts: 1124

PostPosted: Mon Feb 02, 2004 1:46 pm    Post subject: Re: All events 1 day off. Reply with quote

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

 
 
_________________
http://www.phpmix.org
 
Back to top
View user's profile Send private message
jpsndtek
Starter
Starter


Joined: 26 Nov 2003
Posts: 3

PostPosted: Mon Feb 02, 2004 6:36 pm    Post subject: Re: All events 1 day off. Reply with quote

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...
 
Back to top
View user's profile Send private message
markus
[Administrator]
[Administrator]


Joined: 28 Jul 2003
Posts: 1124

PostPosted: Tue Feb 03, 2004 9:48 pm    Post subject: Re: All events 1 day off. Reply with quote

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

 
 
_________________
http://www.phpmix.org
 
Back to top
View user's profile Send private message
jpsndtek
Starter
Starter


Joined: 26 Nov 2003
Posts: 3

PostPosted: Wed Feb 04, 2004 7:41 pm    Post subject: Re: All events 1 day off. Reply with quote

Ah ok, thank you very much sir!

Looking forward to an update or fix for it Very Happy
 
Back to top
View user's profile Send private message
Time-Raider
Starter
Starter


Joined: 12 Feb 2004
Posts: 3

PostPosted: Sat Mar 27, 2004 7:37 pm    Post subject: Re: All events 1 day off. Reply with quote

I have the same problem. does there exist already a solution?
since Sun Oct 19, 2003 on the to do list Rolling Eyes
 
Back to top
View user's profile Send private message
markus
[Administrator]
[Administrator]


Joined: 28 Jul 2003
Posts: 1124

PostPosted: Sat Mar 27, 2004 8:10 pm    Post subject: Re: All events 1 day off. Reply with quote

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

 
 
_________________
http://www.phpmix.org
 
Back to top
View user's profile Send private message
Time-Raider
Starter
Starter


Joined: 12 Feb 2004
Posts: 3

PostPosted: Sat Mar 27, 2004 9:00 pm    Post subject: Re: All events 1 day off. Reply with quote

ok thx for fast answer, but is it really so difficult to fix that?
and why is it fixed in the calendar of snailsource?
 
Back to top
View user's profile Send private message
markus
[Administrator]
[Administrator]


Joined: 28 Jul 2003
Posts: 1124

PostPosted: Sun Mar 28, 2004 12:02 am    Post subject: Re: All events 1 day off. Reply with quote

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.

 
 
_________________
http://www.phpmix.org
 
Back to top
View user's profile Send private message
Time-Raider
Starter
Starter


Joined: 12 Feb 2004
Posts: 3

PostPosted: Sun Mar 28, 2004 12:55 pm    Post subject: Re: All events 1 day off. Reply with quote

and when I set forum time to GMT and the user the time to GMT+1 would it work than? 
Back to top
View user's profile Send private message
markus
[Administrator]
[Administrator]


Joined: 28 Jul 2003
Posts: 1124

PostPosted: Mon May 31, 2004 3:47 pm    Post subject: Re: All events 1 day off. Reply with quote

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

 
 
_________________
http://www.phpmix.org
 
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.   printer-friendly view    phpMiX.org Forum Index -> mxBB Modules -> mxBB Module: mx_calsnails All times are GMT + 1 Hour
 
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
You cannot attach files in this forum
You can download files in this forum