Formatting launch time when the exact time is not yet known#2
Conversation
warwickbuilds
left a comment
There was a problem hiding this comment.
Really appreciate you showing how this could be done with dates, I've updated the page to use V4 of the API and implemented a few checks for non-locked in date/time similar to what you have shown.
Looking to see how I would like to implement your date formatting into the new version.
Thanks again!
|
Hi, I added the formatDate function also for the newest version. Currently it shows the launchpad local time in the upcoming list, although I'm not sure if that's really helpful for users. Maybe it would be better to clarify it somewhere, or always show the user's local time or always show UTC just to avoid confusion. The imprecise dates are always constructed based on the UTC time, because for example if the launch should happen in December, the API will return midnight of December 1st as the UTC time, but the launchpad local time will be -5, so that will fall into November, therefore we cannot use that for the imprecise date formatting. The only case where a distinction between user's local time and launchpad local time is useful is if precision is "hour". |
No description provided.