Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upwith_tz is not working correctly for POSIXlt objects #886
Comments
|
I encounter the same issue! |
|
This is actually a bug in R itself. Setting tzone attribute on posixlt objects results in a mess :/. After recent simplification this re-emerged. |
with_tzdoes not seem to work correctly forPOSIXltobjects. According to the documentationwith_tzis not supposed to change the actual moment of time being represented. However, forPOSIXltobjects it appears to be changing only the time zone.I believe
with_tzwas working correctly forPOSIXltobjects inlubridateversion 1.6.0.I would expect the following two
with_tzcalls to return the same moment in time, but they do not. When I run this code usinglubridateversion 1.7.8 there is a difference of 5 hours according todifftime.