Setting Time Zone

Discussion in 'ASP .Net Security' started by Vinod, Aug 1, 2006.

  1. Vinod

    Vinod Guest

    Hi ,

    I have the following problem:-

    a) My server is located in USA but my application runs only in India.
    When i see the time it shows me the time of USA. I want to know how i can
    set Local time.


    Regards
    Vinod
    Vinod, Aug 1, 2006
    #1
    1. Advertising

  2. Vinod

    Winista Guest

    Use UTC time and then add timezone offset to it to get the local time.

    something like

    (DatdeTime.UtcTime + TimeZone Offset).ToString()

    "Vinod" <> wrote in message
    news:%...
    > Hi ,
    >
    > I have the following problem:-
    >
    > a) My server is located in USA but my application runs only in India.
    > When i see the time it shows me the time of USA. I want to know how i can
    > set Local time.
    >
    >
    > Regards
    > Vinod
    >
    Winista, Aug 2, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ryu

    Time Zone in Windows Time

    Ryu, Sep 15, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    18,261
    madamut
    Feb 11, 2009
  2. =?Utf-8?B?VmluY2UgVmFyYWxsbw==?=

    prevent a postback when moving web parts from zone to zone.

    =?Utf-8?B?VmluY2UgVmFyYWxsbw==?=, Feb 8, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    576
    =?Utf-8?B?VmluY2UgVmFyYWxsbw==?=
    Feb 8, 2006
  3. davout
    Replies:
    3
    Views:
    550
    Roedy Green
    Oct 16, 2003
  4. J.H.Kim

    time adjustment code according to time zone

    J.H.Kim, Oct 24, 2011, in forum: C Programming
    Replies:
    3
    Views:
    458
    Joel C. Salomon
    Oct 24, 2011
  5. Replies:
    9
    Views:
    296
    Michal Kleczek
    May 27, 2013
Loading...

Share This Page