I'd like to submit the following improvement to lib/date/format.rb in
order to parse timezones such as EST5EDT or America/New_York
Also I was wondering if it made sense to have Date._parse_time look into
/usr/share/zoneinfo in case it doesn't find an offset in
Date::Format::ZONES. It may not be compatible with Windows but it seems
better than nothing.
Opinions?
--- lib/date/format.rb (revision 12127)
+++ lib/date/format.rb (working copy)
@@ -671,7 +671,7 @@
|
[a-z.\s]+(?:standard|daylight)\stime\b
|
- [a-z]+(?:\sdst)?\b
+ [a-z]+(?:[\d\/][a-z_]+)?(?:\sdst)?\b
)
)?
/inx,