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 up
TZInfo cannot parse 2-letter time code "ET"? #19
It seems TZInfo doesn't recognize time strings with 2-letter timezone codes, for examples:
irb(main):001:0> require 'tzinfo'
As you could see, timzone code "ET" was basically ignored, while "EDT" and "EST" were parsed correctly. Is this intended?
I think the best behavior would be to take "ET" (or "PT", "CT", etc) as "EDT" if it's daylight saving time like right now, and as "EST" if not in DST, what do you think? By the way, I'm in PDT, thus the -0700 offset.
Is there a workaround to parse the 2-letter timezone codes?
Thanks a lot for the info! I will check them out.
On Thu, May 1, 2014 at 10:44 AM, Dāvis firstname.lastname@example.org wrote: