{"action":"closed","issue":{"url":"https://api.github.com/repos/moment/moment-timezone/issues/510","repository_url":"https://api.github.com/repos/moment/moment-timezone","labels_url":"https://api.github.com/repos/moment/moment-timezone/issues/510/labels{/name}","comments_url":"https://api.github.com/repos/moment/moment-timezone/issues/510/comments","events_url":"https://api.github.com/repos/moment/moment-timezone/issues/510/events","html_url":"https://github.com/moment/moment-timezone/issues/510","id":242427244,"number":510,"title":"Different dates when using .tz method on different timezones for same date","user":{"login":"ashutosh8","id":17563407,"avatar_url":"https://avatars2.githubusercontent.com/u/17563407?v=4","gravatar_id":"","url":"https://api.github.com/users/ashutosh8","html_url":"https://github.com/ashutosh8","followers_url":"https://api.github.com/users/ashutosh8/followers","following_url":"https://api.github.com/users/ashutosh8/following{/other_user}","gists_url":"https://api.github.com/users/ashutosh8/gists{/gist_id}","starred_url":"https://api.github.com/users/ashutosh8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashutosh8/subscriptions","organizations_url":"https://api.github.com/users/ashutosh8/orgs","repos_url":"https://api.github.com/users/ashutosh8/repos","events_url":"https://api.github.com/users/ashutosh8/events{/privacy}","received_events_url":"https://api.github.com/users/ashutosh8/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-07-12T15:45:25Z","updated_at":"2017-08-29T00:23:16Z","closed_at":"2017-08-29T00:23:16Z","body":"Hi,\r\n\r\nI faced an issue when I ran into this scenario which I am not quite sure about whether it is a bug or expected functionality.\r\n\r\nThe issue was that when a date string is supplied to moment timezone for 'America or Europe' and 'Asia or Australia', it returns the different date (previous date and current date respectively). The date string used was only date without time fragment.  The following illustrates the issue: -\r\n\r\n- moment(\"2017-07-13\").tz(\"Europe/Rome\").format('LL')\r\n=> \"July 12, 2017\"\r\n\r\n- moment(\"2017-07-13\").tz(\"Europe/Rome\").format('LT')\r\n=> \"8:30 PM\"\r\n\r\n- moment(\"2017-07-13\").tz(\"Asia/Colombo\").format('LL')\r\n=> \"July 13, 2017\"\r\n\r\n- moment(\"2017-07-13\").tz(\"Asia/Colombo\").format('LT')\r\n=> \"12:00 AM\"\r\n\r\nThe difference in dates is not understood since no time fragment is provided.\r\nAlso, the date supplied does not contain the time fragment then how is the time evaluated from that string.\r\n\r\nPlease let me know if this is a bug or there is something missing from my end.\r\n\r\nThanks,\r\nAshutosh"}}
{"actor":{"display_login":"mj1856"}}