jQuery UI Widgets › Forums › Editors › DateTimeInput › Set TimeZone in to jqwidgets datetimeinput
Tagged: #datetimeinput
This topic contains 4 replies, has 3 voices, and was last updated by CaptainBli 4 years, 3 months ago.
-
Author
-
Hi I am using jqwidgets datetimeinput . It is taking the input as GMT time . It converting that GMt time in to desktop timezones timezone. I want to stop that conversion.If possible I want to insert my own timezone in to jqwidgets datetimeinput . How can I achieve that
Hi Krishna Mohan,
You actually explained how the JavaScript Date object works. To work with JavaScript Date object, please look at: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comHi Peter Stoev,
Thank you for your reply. Can you please tell me how to achieve the following .
What ever the date I set in jqwidgets datetimeinput using $jq(“#meetingStartDate”).jqxDateTimeInput(‘setDate’,date);
I should get the same date when I use $jq(‘#meetingStartDate’).jqxDateTimeInput(‘getDate’);
But now It is converting the setted date in to time of desktop timezone and giving date .
I do not need that.Hi Krishna Mohan,
The conversion happens automatically by the JavaScript Date object, not by our widget. We don’t do that and believe me we don’t need to do it. Please, read more about the JavaScript Date object in order to learn how to use it on the link I sent you.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comSo I understand that you don’t see it because you are on the East side of UTC or a positive timezone offset. So when timezones interact to your dates, the date won’t be offset unless you are working in the late evening. The problem is a time truncation occurring causing the date to be one day earlier. I don’t see a way for us (your clients) to offset the time stamp every time we try to use the date picker by our timezone offset or rather the timezone offset for each user that will see the control on our pages.
Does anyone have a good solution to this? It is very frustrating to find a set of controls that say they work and don’t.
-
AuthorPosts
You must be logged in to reply to this topic.