On Fri, 23 Oct 2009, Ronald J Kimball wrote:

I have a subroutine that uses two DateTime objects. It calls delta_ms() to get the delta between the two objects, does a bit of math, then calls add() to add the delta to one of the objects. Although both objects are created with time_zone => local, occasionally the result is 4 hours ahead of what I expect (which would correspond to UTC).

Can you break this down to a _much_ smaller example that demonstrates the problem (ideally, just 2-4 lines)? I'm too lazy to wade through all the irrelevant code here.

Also, since this probably time zone related and we probably don't share your local time zone, please set the zone explicitly in your example code.


-dave

/*============================================================
http://VegGuide.org               http://blog.urth.org
Your guide to all that's veg      House Absolute(ly Pointless)
============================================================*/

Reply via email to