Ticket #89 (new enhancement)
strftime does not have %z
| Reported by: | bmikeb@… | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | Shepherd | Version: | 1.x |
| Keywords: | Cc: |
Description
.shepherd/reconcilers/reconciler_mk2/reconciler_mk2 line 635, <> line 1. : /Users/abuse/.shepherd/grabbers/yahoo7widget/output-0.xmltv: Use of uninitialized value $tzstring in int at
if (!$gmt_offset) {
my $tzstring = strftime("%z", localtime(time));
Not all strftime's support "%z" or have Timezone information. In my case, no bytes are returned from strftime causing an error. This also occurs in YahooWidget? and in Common.pl where the %z option is used. Manual substituting of $tzstring = "+1000" cured incorrect times for shows. See http://opengroup.org/onlinepubs/007908799/xsh/strftime.html Need another way to aquire the timezone offset.
mac osx bsd darwin perl 5.10
