RE: How do I generally set a TimeZone for the application session

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



You can't set the current time zone through managed code, on either the
machine or process level.
We are looking into adding timezone features for future versions of the
Framework, but it's not there now.

I recommend you transmit and store all date values as UTC, and only use the
local timezone for displaying.

Katy

From: "=?Utf-8?B?QmVuamFtaW4=?=" <benjamin.tengelin@xxxxxxxxxxxxx>
|
| Hi!
|
| I want my .NET Windows Form client to be executing with the same TimeZone
&
| Daylight setting as we have on the server. This has to be done to stop
making
| the "data set/web service logic" changing date values accordning to time
zone
| difference.
|
| Let us to simplify the scenarion say that the time zone used on server
can
| be hard coded in client, it will never change.
|
| It is possible to change something in
| "System.Threading.Thread.CurrentThread.CurrentCulture"
| or "System.Windows.Forms.Application" ?
|
| Of course I do not want my application to change the setting on the
client
| machine, only my application should be affected.
|
| Best regards,
| Benjamin, Sweden
|

.



Relevant Pages

  • Re: how to make dates without timezones?
    ... servers time for both parse and format. ... that letting the client app format using the servers timezone is ... I would store all times on the server as a long in milliseconds since Jan 1, ... You might have to send the client's time zone as a parameter in your RMI request. ...
    (comp.lang.java.programmer)
  • Re: Date problem
    ... time zone of the client, ... As far as I am aware, the browser does not notify the server what ... locale they are in, nor, specifically, what timezone. ... Nor is it possible to know if the time zone setting on the ...
    (comp.lang.php)
  • Re: Script to change time zone?
    ... In the first command you can change the time.nist.gov server with your preferred server, or you can have more than one server if you separate them by commas. ... I'm going to need to change the timezone on ... zone in the control panel to the time zone I'm going to need ...
    (microsoft.public.windowsxp.general)
  • Re: Meeting Requests accross Time-zones(CST-EST) 2 hours apart
    ... time zone or DST setting on the client or server. ... We do believe we have patched all clients, OS, and server applications, ...
    (microsoft.public.exchange.admin)
  • Re: timezone missing for ftp transfers...
    ... >> FTP server have the wrong time when they are saved to ... What is the client that is in use here? ... >local time zone of the server - which means that they are ...
    (microsoft.public.inetserver.iis.ftp)