asp.net中的时区 [英] Time Zone in asp.net

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

问题描述

我想在我的Web应用程序中使用通用时间.
现在我正在使用Asp.net,C#
开发一个考勤系统 我不需要系统时间,但是我希望在同一时间使用通用时间.
我同样使用系统时间,公司的员工将更改系统时间并登录.我不想娱乐.


请帮助我在我的网站上实现世界时间......((GMT + 5.30)





Kishore R

I want to use universal time in my web application.
Now i am developing an attendance system using Asp.net,C#
I dont want system time,but i want universal time to use in same.
I i use system time for the same,the employees of the company will change the system time and login.that i dont want to entertain.


Kindly help me to implement universal time in my website.....(GMT+5.30)





Kishore R

推荐答案

ASP.Net system.time将对您来说很好,因为您没有从用户所在的客户端计算机中检索时间,从托管应用程序的服务器开始的时间.您要做的就是将System.Time转换为Universal.
ASP.Net system.time will work fine for you because you are not retrieving the time from the client machine where the user is, you are retrieving the time from the server hosting the application. All you have to do is convert that System.Time to Universal.


[ ^ ]可能会有所帮助.
This[^] may help.


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

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