Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Timezone#now returns local time as UTC #79
expected behavior: when calling #now on a Timezone object, it will return the current time in the timezone with proper offset
actual behavior: when calling #now on a Timezone object, it returns the local time with 0 offset - IE if the current local time is 13:00:00 -0500, it returns instead 13:00:00 0000 (aka 13:00:00 UTC).
tz = TZInfo::Timezone.get('America/New_York')
(America/New_York is also my local computer time, so Time.now and tz.now should return identical Time objects)