Adjusting a date from an API
问题 I've got an API I'm hitting that returns a date that's at midnight on the East Coast of the U.S. That date, in turn, is used by a computed var to return a localized string. The issue I'm encountering is anyone who's one or more time zones behind the Eastern time will get the day prior from the date object returned from the API. Here's what I've come up with to address this. It feels hacky, so I was hoping to see if there's a better way to get a date object in the non-Eastern time zone that