On Thu, 13 Feb 2003 [EMAIL PROTECTED] wrote:

> On Thu, 13 Feb 2003, Dave Rolsky wrote:
>
> > Actually, I think it's correct.  The UNIX epoch is seconds since January
> > 1, 1970 00:00:00 GMT.  So the GMT assumption is indeed correct.
> >
>
> But you are using Time::Local::timegm() to do the conversion.  timegm() is
> the inverse of gmtime() which returns the year, month, day, hour, etc at
> UTC.

Ok, I think I see the problem.  What we need to do is force all times
created via from_epoch() or now() to have a 'UTC' time zone, since we use
the gmtime() function in from_epoch().  This can be changed once the
object is created.

> Often in these situations you would use timelocal() but timelocal()
> assumes the values you are passing are in the systems localtime and
> doesn't provide an API to override that assumption.

Right.


-dave

/*=======================
House Absolute Consulting
www.houseabsolute.com
=======================*/

Reply via email to