如何忽略asp.net中的夏令时 [英] How to ignore daylight saving in asp.net

查看:74
本文介绍了如何忽略asp.net中的夏令时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我创建了一个事件日历,该日历显示了计划在特定日期执行的程序的列表,现在,由于夏令时,我的客户在10月添加了一个程序,所以该日期可以追溯到1个小时,而整个事情似乎是错误的.

在这种情况下,如何在不编写特定月份补丁的情况下忽略日光节约时间,我们对此有某种全局设置吗?

任何帮助将不胜感激.


Mayank Singh

Hi guys,

I have created an event calendar which displays list of programs that are scheduled for specific days, now when my client adds a program in October due to daylight saving the date goes back 1 hour, and the whole thing seems to be wrong.

how can we ignore daylight saving in this situation offcourse without writing patch for specific month, do we have some kind of global settings for this.

Any help would be really appreciated.


Mayank Singh

推荐答案

我认为如果您使用TimeZoneInfo 而不是Datetime 您可以执行此操作.
I think if you use TimeZoneInfo instead of Datetime you can do this.


这篇关于如何忽略asp.net中的夏令时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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