How to use Region Time Zone with a .Net application?

Posted by davitz38 on Stack Overflow See other posts from Stack Overflow or by davitz38
Published on 2010-05-01T16:25:42Z Indexed on 2010/05/01 16:27 UTC
Read the original article Hit count: 226

Filed under:
|
|

I'm working on an asp.net mvc application. Each user have his own time zone.

Right now, I'm using "TimeZoneInfo.GetSystemTimeZones" to generate a drop down list in order for the user to select a timezone and this is what I store in my db
They are like that:
Morocco Standard Time (00:00:00)
UTC (00:00:00)
GMT Standard Time (00:00:00)
...

I know that php use a different timezone set, they are "region timezone", for example:
Europe/Paris
Europe/London
...

My question is: is there a way to play with the region timezone (like php) in an .NET application? The only way I can think of is to bind each php region timezone to the .net timezone.

Also, the "TimeZoneInfo.GetSystemTimeZones" list all of the timezone on the machine. Is the list different between windows server, windows vista, windows xp?

Hope this make sense, thanks guys

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about php