问题描述
嗨专家,
当我在mongo db中插入日期时它正确插入
ex: - CreatedDate:2018-06 -07 2:51:46.925
在xamarin中检索时出现问题
ex:CreatedDate:2018-06-07 9: 21:46.925
这意味着它会减少5小时30分钟。
什么我试过了:
我试图将5小时30分钟添加到检索到的时间,这样可以给出正确的价值
但这不是任何人告诉我的正确方法,为什么会发生这种情况以及解决方案是什么。
谢谢
Hi Experts,
When I am inserting datetime in mongo db it is inserting correctly
ex:- CreatedDate:2018-06-07 2:51:46.925
while retrieving in xamarin it is coming wrong
ex: CreatedDate:2018-06-07 9:21:46.925
that means it is decreasing by 5 hours 30 minutes.
What I have tried:
I tried to add 5 hours 30 minutes to the retrieved time , which is giving correct value
but it is not the correct way can anyone tell me, why it is happening and what is the solution.
thanks
这篇关于mongo db中的时间问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!