My datetimepicker(jquery.ui.datepicker.js) shows the server time, when the “NOW” button is clicked. Is it possible to show the “Current local time in Hamilton, Canada”, while clicking the NOW Button? i.e.,Is it possible to make the datetimepicker should work in accordance with the Hamilton time? Please help.
My datetimepicker(jquery.ui.datepicker.js) shows the server time, when the NOW button is clicked. Is it
Share
No, JavaScript uses the time settings in the user’s operating system.. You can pass the timezone settings to the server side, and do conversion between timezones (i.e. if you want to store UTC in the database).