Problem with time zone [two application in iis with diff time zone]

Last post 08-01-2008 6:59 PM by vivek_iit. 4 replies.

Sort Posts:

  • Problem with time zone [two application in iis with diff time zone]

    07-14-2008, 1:45 AM
    • Loading...
    • kcube
    • Joined on 07-07-2006, 4:11 AM
    • Kochi
    • Posts 74

    Hi,

    Problem with time zone with IIS
    We have two application running in a web server(IIS), one application is for UK user's and other for UAE user's.

    Can we do anything that application/database caters to the time zone for UAE and UK users running on same iis.

     

    Thanks in Advance,

    KCube

    Regards,
    KCube

    [Mark As Answer! If this helps you]
  • Re: Problem with time zone [two application in iis with diff time zone]

    07-15-2008, 11:22 AM
    Answer
    • Loading...
    • vivek_iit
    • Joined on 06-18-2006, 2:13 PM
    • New Delhi
    • Posts 3,072
    • TrustedFriends-MVPs

     Hi,

    Its not a problem with IIS, you need to localize your application to support different timezones. You need to ask the user to enter which time zone he is in, you can do this while:

    1. asking him during registration

    2.  by clicking some flag or link for UK and UAE, switching locales on the click event

    3. or you can check locale via IP (more intrensive).

    Then you need to set the timezone in the thread accordingly. You can refer these links:

    http://forums.msdn.microsoft.com/en-US/netfxbcl/thread/772971a4-9f1b-4004-a873-c1e0e2098852 

    http://www.codeproject.com/KB/aspnet/HostedTimeZone.aspx

    Hope this helps,

    Vivek 


     

    MVP, ASP.NET || My Website || Blog || Articles

    Please mark the most helpful reply/replies as "Answer".
  • Re: Problem with time zone [two application in iis with diff time zone]

    07-29-2008, 4:56 AM
    • Loading...
    • kcube
    • Joined on 07-07-2006, 4:11 AM
    • Kochi
    • Posts 74

    HI,

    Thanks very much,

    I still face problem with database..

    i have two database running a single sql server, one for uae and other for uk, can i change to time zone of the database seperately.

     

    Thanks,

    kcube

    Regards,
    KCube

    [Mark As Answer! If this helps you]
  • Re: Problem with time zone [two application in iis with diff time zone]

    07-29-2008, 5:03 AM
    • Loading...
    • kcube
    • Joined on 07-07-2006, 4:11 AM
    • Kochi
    • Posts 74

    Hi,

     I agree that  getDate() returns the server date, and its not possible to set  datetime value for each database running in single sql server.

    Still i hope there is some solution for this. Please help?

    Any suggestion other than with UTC is appreciable.

    Thanks,

    KCube

    Regards,
    KCube

    [Mark As Answer! If this helps you]
  • Re: Problem with time zone [two application in iis with diff time zone]

    08-01-2008, 6:59 PM
    Answer
    • Loading...
    • vivek_iit
    • Joined on 06-18-2006, 2:13 PM
    • New Delhi
    • Posts 3,072
    • TrustedFriends-MVPs

    You need to stre timezone in the database table, and do calculations based on that. Refer these articles:

    http://www.netnewsgroups.net/group/microsoft.public.dotnet.framework.aspnet/topic20684.aspx

    http://forums.asp.net/t/894118.aspx?PageIndex=2

    HTH,

    Vivek

    MVP, ASP.NET || My Website || Blog || Articles

    Please mark the most helpful reply/replies as "Answer".
Page 1 of 1 (5 items)
Microsoft Communities
Page view counter