[rt-users] Error in e-mail dates

Ruslan Zakirov ruslan.zakirov at gmail.com
Sat Dec 23 21:17:18 EST 2006


In RT 3.6.1 we're using POSIX module, as I understand it's using
system's functions. Format %z is marked as GNU extension...

But all this doesn't matter as we found other problems with strftime
function from POSIX lib and switched to a different solution in RT
3.6.3. So you have to upgrade instead digging into it. You also can
fetch a patch from the repository.

On 12/23/06, Robert Spier <rspier at pobox.com> wrote:
>
> Gene,
>
>   What version of perl?
>
>   What does:
>
>  /usr/local/bin/perl -MDate::Format -le'@a=localtime; print strftime("%z", at a)'
>
>  output?  use the same perl that your RT is running with.
>
>   Your Date::Format may be out of date.
>
> -R
>
> At Fri, 22 Dec 2006 11:45:57 -0800,
> Gene LeDuc wrote:
> >
> > Hi,
> >
> > I've finished installing rt 3.6.1 on a solaris 9 box and am seeing an
> > error in the date processing for e-mails.  E-mails sent from rt have a
> > date field that looks like "Date: Fri, 22 Dec 2006 10:39:36 %z".  The
> > time listed is local time, but because the timezone is bogus (%z) my
> > mail client assumes it is GMT and shows me a time that is way off.
> > For example, the above time shows up as "02:39 AM" (Local time is
> > 10:39 and GMT is 18:39) in my mail client.  The time and timezone on
> > the Solaris box are correct.
> >
> > In rt.log I'm seeing this message:
> > [Fri Dec 22 18:39:58 2006] [debug]: RT::Date used date::parse to make
> > 1970-01-01 28800 (/opt/local/lib/RT/Date.pm:211)
> >
> > The timestamps in the web interface are correct local times.
> >
> > Here's what is in my RT_SiteConfig.pm:
> > Set($Timezone , 'US/Pacific');
> >
> > Can anyone suggest what the problem is here?
> >
> > Thanks,
> > Gene
> >
> >
> >
> > --
> > Gene LeDuc, GSEC
> > Security Analyst
> > San Diego State University
> > _______________________________________________
> > http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
> >
> > Community help: http://wiki.bestpractical.com
> > Commercial support: sales at bestpractical.com
> >
> >
> > Discover RT's hidden secrets with RT Essentials from O'Reilly
> > Media. Buy a copy at http://rtbook.bestpractical.com
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>
> Community help: http://wiki.bestpractical.com
> Commercial support: sales at bestpractical.com
>
>
> Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
> Buy a copy at http://rtbook.bestpractical.com
>


-- 
Best regards, Ruslan.



More information about the rt-users mailing list