Changing timezone do not produce effect #855
Labels
help wanted
Extra attention is needed
Status: PR Welcome
Welcome to Pull Request
Type: Bug
Bug or Bug fixes
Hi,
I use the setDateTimeFormat function to update the dateTimeFormats definitions to allow users to select their preferred timezone or change the timezone based on their current activity. The following code is an simplified extract of our code to flip/flop timezone between
Europe/Paris
toUTC
.This code allows to change the dateTimeFormat configuration but do not have any effect on date rendering. By adding the following tricks, the timeZone is correctly used during rendering.
I think vue-i18n must clear clean its internal cache when the configuration change.
Also, it's can be nice to have an overall timezone setting too.
Best regards,
The text was updated successfully, but these errors were encountered: