Configuration Option to set the time zone to use on the client.

Author: JohnSomskyCreated Apr 10, 2024Updated Jan 16, 2025
Labelsrequest: feature

Expected behaviour

Our application allows customers to configure a "time zone of record" All dates are to be interpreted trough that time zone. All time stamps are displayed in that time zone (although storage is in UTC). So the "Today" functionality in the date picker should always use the time zone of record.

Actual behaviour

The date picker used the client (browser) time zone to determine what Today is. In some cases this can result in an invalid date being selected in cases where we only allow today and future dates or today and past dates. What we would like to do is have an option where we can tell the date picker what timezone it should use for the "local" timezone.

Please let us know if this would be considered. If so we would consider preparing a pull request for your approval.

Datepicker version used

1.10.0

Example code

N/A

Source: uxsolutions/bootstrap-datepicker