为什么没有当我设置的CurrentCulture时区的变化? [英] Why doesn't the Timezone change when I set the CurrentCulture?
问题描述
从我研究了它不可能改变一个线程的时区。所以我的问题是,为什么能不好吗?
From what I have researched it is not possible to change the Timezone of a thread. So my question is why can't you?
我还以为你的应用程序的文化切换到一个特定的国家也将改用这一点,似乎像IMO期望的行为。
I would have thought switching your application's culture to a specific country would also switch this, seems like expected behaviour IMO.
修改
修改我能看到的原因后,默认情况下,1:为什么它可能不应该被映射1。不过,我还是觉得这将是一个不错的功能能够改变每个线程的时区。
After revising I can see the reason why it probably shouldn't be mapped 1:1 by default. However, I still feel it would be a nice feature to be able to change the Timezone per thread.
推荐答案
他们不1:1,因此他们不是真正的连接。如果设置了当前文化的en-US
,该时区是什么? :)
They aren't a 1:1 so they're not really connected. If you set the current culture to en-US
, which timezone is that? :)
若干国家拥有超过1时区,因此设置文化(的这是不特定的国家或者为此事),并没有真正有很多工作要做,与timzone。
Several countries have more than 1 timezone, so setting the culture (which is not country specific either for that matter), doesn't really have much to do with the timzone.
这篇关于为什么没有当我设置的CurrentCulture时区的变化?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!