开发者

Why the Date is different when accessed througth Domain class and from DB

开发者 https://www.devze.com 2023-03-07 03:47 出处:网络
I have domain class and had a property DOB of type Date and when i access it through domain class objec开发者_运维问答t it showing +1 to the actual date in DB. i am displaying all of my data in yui da

I have domain class and had a property DOB of type Date and when i access it through domain class objec开发者_运维问答t it showing +1 to the actual date in DB. i am displaying all of my data in yui datatable.

I dont know the exact reason for it.Please can u give the reason for it


I suspect this issue is because of Timezones. Especially if you save your date with time 00:00:00.

Can you play with timezones, and, which is preferable, to store dates only in specified timezone (GST) and, on read, translate to user current Timezone.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号