我正在使用Kendo UI DateTimePicker,我遇到了绑定问题。 我从json获取数据然后我根据json值创建新的js日期并绑定它。 实际结果是日期转换为本地时区。 我可以禁用转换为本地时区吗?
I am using Kendo UI DateTimePicker and i faced with binding issue. I am getting data from json then i creating new js date based on the json value and bind it. Actual result is that the date is converted to local timezone. Can i disable conversion to local timezone?
最满意答案
DateTimePicker不执行任何转换。 我希望您的日期没有时区特定程序,当您创建新的js日期时,此值被视为UTC并转换为本地。 要解决此问题,您只需从json绑定日期,而无需创建新的js日期。
The DateTimePicker does not perform any conversion. I expect that your date does not have time zone specificator and when you creating new js date this value considered as UTC and converted to local. To solve this problem you can simply bind date from json without creating new js date.
更多推荐
发布评论