Neil Stalker wrote: > In windows the timezones have a descriptive name such as "Eastern > Standard Time" but in linux the same timezone has the name > "US/Eastern". Is there a cross platform way of running > TimeZoneInfo.FindSystemTimeZoneById that can be used both in linux > and windows...
Not that I ever found. I have a .NET client application writing a Windows timezone name to a database on a Linux system that a .NET server application on that Linux system needs to use. I had to setup my own conversion function for the common US timezones. In case it helps anyone else, here is the mapping I used: WINDOWS TIMEZONE ID DESCRIPTION UNIX TIMEZONE ID Eastern Standard Time => GMT-5 w/DST => US/Eastern Central Standard Time => GMT-6 w/DST => US/Central US Central Standard Time => GMT-6 w/o DST (Indiana) => US/Indiana-Stark Mountain Standard Time => GMT-7 w/DST => US/Mountain US Mountain Standard Time => GMT-7 w/o DST (Arizona) => US/Arizona Pacific Standard Time => GMT-8 w/DST => US/Pacific Alaskan Standard Time => GMT-9 w/DST => US/Alaska Hawaiian Standard Time => GMT-10 w/DST => US/Hawaii -- Ryan Kirkpatrick <[email protected]>, 303-209-7190 Senior Design Engineer Inovonics Wireless Corporation This email transmission and any documents, files or previous email messages attached to it contains information that is confidential or legally privileged. If you are not the intended recipient or a person responsible for delivering this transmission to the intended recipient, you are hereby notified that you must not read this transmission and that any disclosure, copying, printing, distribution or use of this transmission is strictly prohibited. If you have received this transmission in error, please immediately notify the sender by telephone or return email and delete the original transmission and its attachments without reading or saving in any manner. Thank you. _______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
