Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. can you propose me better solution than this go get client side time zone setting?

can you propose me better solution than this go get client side time zone setting?

Scheduled Pinned Locked Moved ASP.NET
helpcsharpjavascriptdatabasesysadmin
1 Posts 1 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Sachin Gedam
    wrote on last edited by
    #1

    Hello Friends, I am working in .Net 1.1 framwork. Basic task is to get client's local time(not datetime.now) and store it in GMT format in database server with its time zone information. I can get local time by javascript, but can you help me to identify client's time zone information. Can I access it from Http header? As a solution to this I maintaining one xml file which have all time zone information with it. I am manipulating date time conversion based on this xml file. At local side(in javascript) I am maintaining two array one for time zone abbreviation and one for GMTOffset, in JavaScript I can get GMTOffset with respect to local time, and from this GMTOffset I can find out time zone abbreviation. And I am passing this time Zone abbreviation to server side for further conversion. But problem with this solution is that, it may be possible that two or more time zone can share same offset, in that case I am not able to get exact time zone information. I am receiving only first one. So can you propose me better solution than this to get client side time zone setting?

    Sachin Gedam (Software Engg.) Pune India

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups