cosmicds / blaze-star-nova

MIT License
0 stars 4 forks source link

Implement Timezones in blaze story #23

Closed johnarban closed 3 months ago

johnarban commented 3 months ago

This PR fixes #21 , and handles user selected timezones. This is done via a composable that accepts a user selectedLocation Ref, and uses computed values to keep track of the timezone and timezone offset (this stuff is taken from the green-comet mini). Because the date-time-picker and time-dispaly are not natively timezone aware, I create computed localSelectedDate whose time when console.log-ed reflects the local time in the user selected location. This is passed the picker and display components, and they can read from set the time via the localSelectedDate setter.