user1163513
user1163513

Reputation: 4207

Timezone setting in Jquery UI datepicker

I am using jquery UI date picker.The user have to enter booking in date and booking out date and on the basis of these dates booking days are calculated.I have to set the timezone of UK in order to calculate booking days.How can i do this? As without setting the timezone the difference calculated between two dates is not correct.

Any help would be highly appreciable.

Upvotes: 2

Views: 6788

Answers (1)

charlietfl
charlietfl

Reputation: 171669

The javascript date object includes getTimezoneOffset() method based on user's machine settings and compared to GMT. I don't understand enough of how you need to use this in your application to guide any further

https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getTimezoneOffset

Upvotes: 1

Related Questions