Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Search

 
Advanced search

8043 Posts in 1856 Topics- by 2099 Members - Latest Member: roi
Calendar Script CommunityCustomizationPlugins (Moderators: scott, DanO, Marty)Bug with csxport plugin
Pages: [1]   Go Down
Print
Author Topic: Bug with csxport plugin  (Read 697 times)
0 Members and 1 Guest are viewing this topic.
musicvid
New Member
*

Karma: 1
Offline Offline

Posts: 8


WWW
« on: March 12, 2006, 06:57:00 PM »

DanO,
I know you didn't write this one, but any help you can provide will be appreciated since the author isn't on these boards anymore.

The csxport beta plugin exports the correct yyyymmdd date when the event has start and end times. However for "all day" events, the date is reported one day short --- i.e., 20060731 instead of the correct event date of 20060801. This is puzzling since the dates appear correctly in schedule.txt

Thanks, Mark

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #1 on: March 12, 2006, 11:19:00 PM »

It might be something to do with the time zone offset? I believe events are stored as GMT not local time which could cause dates to the 5 hours off (if your in ET zone).

JFYI

Dan o.

------------------

Logged
musicvid
New Member
*

Karma: 1
Offline Offline

Posts: 8


WWW
« Reply #2 on: March 17, 2006, 05:03:00 PM »

Good call, DanO,
Here is the fix in case others can use it:

In the csxport folder, open display_after_search.pl in a text editor.
Near the end of the file, find the line:
($sec,$min,$hours,$day,$month,$year,$wday,$yday,$isdst) = localtime($date);

Replace with:
($sec,$min,$hours,$day,$month,$year,$wday,$yday,$isdst) = gmtime($date);

------------------

Logged
Pages: [1]   Go Up
Print
Jump to: