{"action":"created","issue":{"url":"https://api.github.com/repos/dateutil/dateutil/issues/143","labels_url":"https://api.github.com/repos/dateutil/dateutil/issues/143/labels{/name}","comments_url":"https://api.github.com/repos/dateutil/dateutil/issues/143/comments","events_url":"https://api.github.com/repos/dateutil/dateutil/issues/143/events","html_url":"https://github.com/dateutil/dateutil/issues/143","id":114562081,"number":143,"title":"tzname() inconsistent between tzwin() and tzwinlocal() and neither reflect actual DST.","user":{"login":"labrys","id":1867464,"avatar_url":"https://avatars.githubusercontent.com/u/1867464?v=3","gravatar_id":"","url":"https://api.github.com/users/labrys","html_url":"https://github.com/labrys","followers_url":"https://api.github.com/users/labrys/followers","following_url":"https://api.github.com/users/labrys/following{/other_user}","gists_url":"https://api.github.com/users/labrys/gists{/gist_id}","starred_url":"https://api.github.com/users/labrys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/labrys/subscriptions","organizations_url":"https://api.github.com/users/labrys/orgs","repos_url":"https://api.github.com/users/labrys/repos","events_url":"https://api.github.com/users/labrys/events{/privacy}","received_events_url":"https://api.github.com/users/labrys/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-02T09:58:13Z","updated_at":"2015-11-02T14:55:27Z","closed_at":null,"body":"Time zone names are inconsistent between `tzwin()` and `tzwinlocal()` and neither reflect actual DST.\r\n\r\nTested on Windows for all US time zones with current master SHA1: b46e721 and for proposed fix at #142 - both fail.\r\n\r\n```python\r\nimport datetime\r\nimport dateutil.tz\r\n\r\ntw = dateutil.tz.tzwin('Eastern Standard Time')\r\ntwl = dateutil.tz.tzwinlocal()\r\ntests = [('EDT should be started', '2015-03-08 03:01'),\r\n         ('Still not EDT', '2015-03-15 01:59'),\r\n         ('tzwin is EDT', '2015-03-15 02:00'),\r\n         ('tzwinlocal still not EDT', '2015-03-16 23:59'),\r\n         ('Finally EDT!', '2015-03-17 00:00'),\r\n         ('EDT should have ended', '2015-11-01 03:01'),\r\n         ('Still not EST', '2015-11-08 01:59'),\r\n         ('tzwin is EST', '2015-11-08 02:00'),\r\n         ('tzwinlocal still not EST', '2015-11-15 23:59'),\r\n         ('Finally EST!', '2015-11-16 00:00')]\r\n\r\nrow = '{:<16}  |  {:<21}  |  {:<21}  |  {}'\r\nprint row.format('Date', 'tzwin', 'tzwinlocal', 'Notes')\r\nprint '{:-<100}'.format('')\r\nfor each in tests:\r\n    desc, date = each\r\n    test = datetime.datetime.strptime(date, '%Y-%m-%d %H:%M')\r\n    tw_test = test.replace(tzinfo=tw)\r\n    twl_test = test.replace(tzinfo=twl)\r\n    print row.format(date, tw_test.tzname(), twl_test.tzname(), desc)\r\n```\r\nresult:\r\n```\r\nDate              |  tzwin                  |  tzwinlocal             |  Notes\r\n----------------------------------------------------------------------------------------------------\r\n2015-03-08 03:01  |  Eastern Standard Time  |  Eastern Standard Time  |  EDT should be started\r\n2015-03-15 01:59  |  Eastern Standard Time  |  Eastern Standard Time  |  Still not EDT\r\n2015-03-15 02:00  |  Eastern Daylight Time  |  Eastern Standard Time  |  tzwin is EDT\r\n2015-03-16 23:59  |  Eastern Daylight Time  |  Eastern Standard Time  |  tzwinlocal still not EDT\r\n2015-03-17 00:00  |  Eastern Daylight Time  |  Eastern Daylight Time  |  Finally EDT!\r\n2015-11-01 03:01  |  Eastern Daylight Time  |  Eastern Daylight Time  |  EDT should have ended\r\n2015-11-08 01:59  |  Eastern Daylight Time  |  Eastern Daylight Time  |  Still not EST\r\n2015-11-08 02:00  |  Eastern Standard Time  |  Eastern Daylight Time  |  tzwin is EST\r\n2015-11-15 23:59  |  Eastern Standard Time  |  Eastern Daylight Time  |  tzwinlocal still not EST\r\n2015-11-16 00:00  |  Eastern Standard Time  |  Eastern Standard Time  |  Finally EST!\r\n```"},"comment":{"url":"https://api.github.com/repos/dateutil/dateutil/issues/comments/153042301","html_url":"https://github.com/dateutil/dateutil/issues/143#issuecomment-153042301","issue_url":"https://api.github.com/repos/dateutil/dateutil/issues/143","id":153042301,"user":{"login":"pganssle","id":1377457,"avatar_url":"https://avatars.githubusercontent.com/u/1377457?v=3","gravatar_id":"","url":"https://api.github.com/users/pganssle","html_url":"https://github.com/pganssle","followers_url":"https://api.github.com/users/pganssle/followers","following_url":"https://api.github.com/users/pganssle/following{/other_user}","gists_url":"https://api.github.com/users/pganssle/gists{/gist_id}","starred_url":"https://api.github.com/users/pganssle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pganssle/subscriptions","organizations_url":"https://api.github.com/users/pganssle/orgs","repos_url":"https://api.github.com/users/pganssle/repos","events_url":"https://api.github.com/users/pganssle/events{/privacy}","received_events_url":"https://api.github.com/users/pganssle/received_events","type":"User","site_admin":false},"created_at":"2015-11-02T14:55:27Z","updated_at":"2015-11-02T14:55:27Z","body":"How very strange. Really good find.\r\n\r\nBy the way, if you don't mind, in the future can you use the print function syntax? `print(x)` instead of `print x`. I'm often running these tests on Python 3.x so it makes it more difficult to just copy+paste."}}