在web.config全球化中设置时间 [英] Set time in web.config globalization

查看:81
本文介绍了在web.config全球化中设置时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hi
我需要在web.config全球化中全局设置时间



我有一个名为User withwith created date列的表。

在编码中我将datetime.now传递给该列



现在我需要从全球化发送它。





谢谢

hi I need to set time globally in web.config globalization

i have table called User with "created date" column.
In coding i am passing "datetime.now" to that column

Now i need to send it from globalization.


Thank you

推荐答案

为什么你甚至想要什么?要做到这一点?您是否希望任何时候所有用户都来自同一时区?你和我不是,我们同时使用同一个网站...



有三个时间你应该感兴趣/知道of:通用协调时间,服务器时间(任何运气将是UTC,但可能不是),以及客户时间,可能是世界上任何地方。你应该开始做的最后一件事是尝试第四次引入,因为这会使事情变得非常复杂 - 至少你的网络服务器和数据库服务器很有可能共享一个共同的时间!
Why the heck would you even want to do that? Do you expect that all your users at any one time will be from the same time zone? You and I aren't, and we are using the same website at the same time...

There are three "times" you should be interested in / aware of: Universal Coordinated Time, Server time (which with any luck will be UTC, but probably not), and Client time, which could be anywhere in the world. The last thing you should start doing is trying to introduce a fourth time as this will just complicate things immensely - at least there is a good chance that your webserver and database server share a common time at the moment!

这篇关于在web.config全球化中设置时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆