GXT 中的时区问题?
我正在使用下面的代码。
private DateField startDateField = new DateField();
Date date = new Date();
startDateField.setValue(date);
Date date2 =startDateField.getValue()
问题是,当我调用 startDateField.getValue() 方法时,我正在获取日期,但时间设置为 0。我的服务器位于 KOP 中。我正在通过 IST 日期。因为 GWT 会根据时区调整日期。 KOP 位于不同的时区。如果我在 IST 中传递日期,那么它应该花费完全匹配的 KOP 时间?请建议我。
谢谢!
I am using below code.
private DateField startDateField = new DateField();
Date date = new Date();
startDateField.setValue(date);
Date date2 =startDateField.getValue()
The problem is, when i call startDateField.getValue() method i am getting date but time is set 0. my server is in KOP. i am passing date as IST. as GWT does adjustments of dates based on timezone. KOP is in different timezone. if i pass date in IST then it should take exactly matching KOP time? Please suggest me.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论