This PR fixes #21 , and handles user selected timezones. This is done via a composable that accepts a user selectedLocationRef, 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.
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 thedate-time-picker
andtime-dispaly
are not natively timezone aware, I create computedlocalSelectedDate
whose time whenconsole.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 thelocalSelectedDate
setter.