JTAppleCalendar icon indicating copy to clipboard operation
JTAppleCalendar copied to clipboard

Maps selected dates from one time zone to another when reloading data.

Open kielgillard opened this issue 6 years ago • 1 comments

  • selectedDates returns moments according to the calendar and time zone of the current configuration.
  • When reloading data, a new configuration is retrieved from the data source.
  • This new configuration potentially contains a different calendar and/or time zone.
  • Right now, the selected dates does not represent the same moment across time zones after a reload.
  • This PR maps those moments across time zones.

Consider: Selecting a specific day when the calendar uses an Alaskan time zone but when reloading returning a calednar using an Australian time zone.

Actual behaviour: the day after is selected. Expected behaviour: the same day should be selected.

kielgillard avatar Aug 23 '19 01:08 kielgillard

will look at this in a bit

patchthecode avatar Sep 05 '19 16:09 patchthecode