Discussion:
[Xmltv-devel] [ xmltv-Bugs-3098768 ] ch_search: not honoring daylight saving time
SourceForge.net
2011-03-28 19:40:30 UTC
Permalink
Bugs item #3098768, was opened at 2010-10-30 11:27
Message generated for change (Comment added) made by bhaak
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=424135&aid=3098768&group_id=39046

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: tv_grab_ch_search
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Patric Mueller (bhaak)
Assigned to: Nobody/Anonymous (nobody)
Summary: ch_search: not honoring daylight saving time

Initial Comment:
The current CVS version of tv_grab_ch_search has the CET timezone hardcoded:
tv_grab_ch_search.in:148 ## the timezone tv.search.ch lives in is, CET/CEST
tv_grab_ch_search.in:149: my constant $TZ = "+0100";

For the time being this problem will of course resolve itself tonight. :)

----------------------------------------------------------------------
Comment By: Patric Mueller (bhaak)
Date: 2011-03-28 21:40

Message:
A workaround I'm using is using
my constant $TZ = strftime("%z",localtime);

This returns the current time zone offset.

This isn't a real solution as the dates after the change of the daylight
saving time are still wrong if they come from a run of the program before
the change of the daylight saving time.

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

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=424135&aid=3098768&group_id=39046
SourceForge.net
2011-03-29 11:52:26 UTC
Permalink
Bugs item #3098768, was opened at 2010-10-30 11:27
Message generated for change (Comment added) made by thomi_ch
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=424135&aid=3098768&group_id=39046

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: tv_grab_ch_search
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Patric Mueller (bhaak)
Assigned to: Nobody/Anonymous (nobody)
Summary: ch_search: not honoring daylight saving time

Initial Comment:
The current CVS version of tv_grab_ch_search has the CET timezone hardcoded:
tv_grab_ch_search.in:148 ## the timezone tv.search.ch lives in is, CET/CEST
tv_grab_ch_search.in:149: my constant $TZ = "+0100";

For the time being this problem will of course resolve itself tonight. :)

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

Comment By: thomi_ch (thomi_ch)
Date: 2011-03-29 13:52

Message:
hey patric

thanks for your solution/workaround.. fixed it like this.. and also added
this line after #!/usr/bin/perl

use POSIX;

now times are correct ;)...

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

Comment By: Patric Mueller (bhaak)
Date: 2011-03-28 21:40

Message:
A workaround I'm using is using
my constant $TZ = strftime("%z",localtime);

This returns the current time zone offset.

This isn't a real solution as the dates after the change of the daylight
saving time are still wrong if they come from a run of the program before
the change of the daylight saving time.

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

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=424135&aid=3098768&group_id=39046
SourceForge.net
2011-03-30 08:11:54 UTC
Permalink
Bugs item #3098768, was opened at 2010-10-30 11:27
Message generated for change (Comment added) made by dekarl
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=424135&aid=3098768&group_id=39046

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: tv_grab_ch_search
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Patric Mueller (bhaak)
Assigned to: Nobody/Anonymous (nobody)
Summary: ch_search: not honoring daylight saving time

Initial Comment:
The current CVS version of tv_grab_ch_search has the CET timezone hardcoded:
tv_grab_ch_search.in:148 ## the timezone tv.search.ch lives in is, CET/CEST
tv_grab_ch_search.in:149: my constant $TZ = "+0100";

For the time being this problem will of course resolve itself tonight. :)

----------------------------------------------------------------------
Comment By: Karl Dietz (dekarl)
Date: 2011-03-30 10:11

Message:
great that you found a workaround that is working for now!
But that fix will break the schedule when you grab for days that are on
the other side of the DST switch.

Can you take a look at _pt_meo? It is converting floating localtime into
specific localtime, too. (and really simple, that's why I'm suggesting it)
That would solve all issues but one. That being invalid localtime in the
guide, like 02:30 when the clock jumps from 01:59 to 03:00.

Regards,
Karl

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

Comment By: thomi_ch (thomi_ch)
Date: 2011-03-29 13:52

Message:
hey patric

thanks for your solution/workaround.. fixed it like this.. and also added
this line after #!/usr/bin/perl

use POSIX;

now times are correct ;)...

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

Comment By: Patric Mueller (bhaak)
Date: 2011-03-28 21:40

Message:
A workaround I'm using is using
my constant $TZ = strftime("%z",localtime);

This returns the current time zone offset.

This isn't a real solution as the dates after the change of the daylight
saving time are still wrong if they come from a run of the program before
the change of the daylight saving time.

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

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=424135&aid=3098768&group_id=39046
SourceForge.net
2011-03-30 08:26:42 UTC
Permalink
Bugs item #3098768, was opened at 2010-10-30 11:27
Message generated for change (Comment added) made by thomi_ch
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=424135&aid=3098768&group_id=39046

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: tv_grab_ch_search
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Patric Mueller (bhaak)
Assigned to: Nobody/Anonymous (nobody)
Summary: ch_search: not honoring daylight saving time

Initial Comment:
The current CVS version of tv_grab_ch_search has the CET timezone hardcoded:
tv_grab_ch_search.in:148 ## the timezone tv.search.ch lives in is, CET/CEST
tv_grab_ch_search.in:149: my constant $TZ = "+0100";

For the time being this problem will of course resolve itself tonight. :)

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

Comment By: thomi_ch (thomi_ch)
Date: 2011-03-30 10:26

Message:
hey karl

don't be the perl specialist, in the moment ;)..
can you point me to the right lines, maybe then i can make some tests...

thanks a lot
thomi

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

Comment By: Karl Dietz (dekarl)
Date: 2011-03-30 10:11

Message:
great that you found a workaround that is working for now!
But that fix will break the schedule when you grab for days that are on
the other side of the DST switch.

Can you take a look at _pt_meo? It is converting floating localtime into
specific localtime, too. (and really simple, that's why I'm suggesting it)
That would solve all issues but one. That being invalid localtime in the
guide, like 02:30 when the clock jumps from 01:59 to 03:00.

Regards,
Karl

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

Comment By: thomi_ch (thomi_ch)
Date: 2011-03-29 13:52

Message:
hey patric

thanks for your solution/workaround.. fixed it like this.. and also added
this line after #!/usr/bin/perl

use POSIX;

now times are correct ;)...

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

Comment By: Patric Mueller (bhaak)
Date: 2011-03-28 21:40

Message:
A workaround I'm using is using
my constant $TZ = strftime("%z",localtime);

This returns the current time zone offset.

This isn't a real solution as the dates after the change of the daylight
saving time are still wrong if they come from a run of the program before
the change of the daylight saving time.

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

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=424135&aid=3098768&group_id=39046
Loading...