{"action":"created","issue":{"url":"https://api.github.com/repos/houseabsolute/Time-Local/issues/5","repository_url":"https://api.github.com/repos/houseabsolute/Time-Local","labels_url":"https://api.github.com/repos/houseabsolute/Time-Local/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/houseabsolute/Time-Local/issues/5/comments","events_url":"https://api.github.com/repos/houseabsolute/Time-Local/issues/5/events","html_url":"https://github.com/houseabsolute/Time-Local/issues/5","id":284818363,"number":5,"title":"str2time result wrong for dates < 1968 (100 years off)","user":{"login":"jimav","id":1262272,"avatar_url":"https://avatars0.githubusercontent.com/u/1262272?v=4","gravatar_id":"","url":"https://api.github.com/users/jimav","html_url":"https://github.com/jimav","followers_url":"https://api.github.com/users/jimav/followers","following_url":"https://api.github.com/users/jimav/following{/other_user}","gists_url":"https://api.github.com/users/jimav/gists{/gist_id}","starred_url":"https://api.github.com/users/jimav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimav/subscriptions","organizations_url":"https://api.github.com/users/jimav/orgs","repos_url":"https://api.github.com/users/jimav/repos","events_url":"https://api.github.com/users/jimav/events{/privacy}","received_events_url":"https://api.github.com/users/jimav/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-12-28T00:29:38Z","updated_at":"2017-12-28T02:29:52Z","closed_at":null,"author_association":"NONE","body":"Using Date::Parse Version 2.30, Time::Local version 1.25, and perl v5.26.0... \r\n\r\nDate::Parse::str2time(\"January 01, 1967\", \"GMT\") returns 3061065600 which is Jan 1, 2067.\r\n\r\nHowever Time::Local::timegm(0,0,0,1,0,1967) returns the correct result (-94694400), or at least a result which POSIX::strftime thinks is Jan 1, 1967.   So at first blush this looks like a bug in str2time() not the \r\ntimelocal/timegm library.\r\n\r\nAnyway, the doc for Date::Parse indicates that dates after 1901 should work.\r\n[demos.zip](https://github.com/houseabsolute/Time-Local/files/1590115/demos.zip)\r\n\r\n\r\n\r\nFWIW, both 3061065600 and -94694400 are negative if stored as 32-bit integers.  My platform is 64-bit Ubuntu.\r\n\r\nI'll attach both a Perl demo script and a small C program which shows the bits in hex (they are both in a .zip file because github won't let me upload a raw \".pl\" file)."},"comment":{"url":"https://api.github.com/repos/houseabsolute/Time-Local/issues/comments/354216433","html_url":"https://github.com/houseabsolute/Time-Local/issues/5#issuecomment-354216433","issue_url":"https://api.github.com/repos/houseabsolute/Time-Local/issues/5","id":354216433,"user":{"login":"autarch","id":50729,"avatar_url":"https://avatars1.githubusercontent.com/u/50729?v=4","gravatar_id":"","url":"https://api.github.com/users/autarch","html_url":"https://github.com/autarch","followers_url":"https://api.github.com/users/autarch/followers","following_url":"https://api.github.com/users/autarch/following{/other_user}","gists_url":"https://api.github.com/users/autarch/gists{/gist_id}","starred_url":"https://api.github.com/users/autarch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/autarch/subscriptions","organizations_url":"https://api.github.com/users/autarch/orgs","repos_url":"https://api.github.com/users/autarch/repos","events_url":"https://api.github.com/users/autarch/events{/privacy}","received_events_url":"https://api.github.com/users/autarch/received_events","type":"User","site_admin":false},"created_at":"2017-12-28T02:29:52Z","updated_at":"2017-12-28T02:29:52Z","author_association":"COLLABORATOR","body":"If this is a Date::Parse bug I'm a little confused as to why you've reported it here. This is the Time-Local distribution's issue tracker. See https://rt.cpan.org/Dist/Display.html?Name=TimeDate for the TimeDate distribution's bug tracker."}}
{"actor":{"display_login":"autarch"}}