Netscape 7 Timezone question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • LJL

    Netscape 7 Timezone question

    Greetings:

    I have a question regarding the system time and Netscape 7. I am running
    Win98SE.

    When Netscape 7 first loads it seems to store the currently set system time
    zone information. If I change the time zone after Netscape 7 is loaded,
    from Eastern time to Pacific time for example, it still uses the old time
    zone info. In other words, the system clock now says it is Pacific time
    but Netscape still reports Eastern time if it is given this:

    var dummy = new Date();
    window.alert(du mmy);

    IE 6 has no problem with this. It reports the new time zone.

    First off, is this happening to anyone else? Second, does anyone know a
    way to make Netscape 7 keep track of the system's time zone settings,
    especially if they are changed?

    This isn't a big problem, but I'm developing a calendar with some time
    functions and it makes trouble shooting a pain.

    Any help would be appreciated. If nothing else, verification that this
    happens to others would be of benefit.

    Best regards,
    LJL
  • Dr John Stockton

    #2
    Re: Netscape 7 Timezone question

    JRS: In article <Xns947CBC25F34 8nonenowherecom @207.69.154.204 >, seen in
    news:comp.lang. javascript, LJL <none@nowhere.c om> posted at Mon, 26 Jan
    2004 06:09:20 :-[color=blue]
    >
    >I have a question regarding the system time and Netscape 7. I am running
    >Win98SE.
    >
    >When Netscape 7 first loads it seems to store the currently set system time
    >zone information. If I change the time zone after Netscape 7 is loaded,
    >from Eastern time to Pacific time for example, it still uses the old time
    >zone info. In other words, the system clock now says it is Pacific time
    >but Netscape still reports Eastern time if it is given this:
    >
    > var dummy = new Date();
    > window.alert(du mmy);
    >
    >IE 6 has no problem with this. It reports the new time zone.
    >
    >First off, is this happening to anyone else? Second, does anyone know a
    >way to make Netscape 7 keep track of the system's time zone settings,
    >especially if they are changed?[/color]

    I don't recall whether a correct action is defined. Settings could be
    read from the OS at the moment of use, when the page is loaded, or when
    the browser is loaded.

    At the moment, I cannot think of any OS settings that affect javascript
    other than those involving Date Objects; for example, *AFAIK* there is
    no use for currency setting in javascript, and, though the decimal
    separator setting could be used, it is not. Are there others?

    --
    © John Stockton, Surrey, UK. ?@merlyn.demon. co.uk Turnpike v4.00 IE 4 ©
    <URL:http://jibbering.com/faq/> Jim Ley's FAQ for news:comp.lang. javascript
    <URL:http://www.merlyn.demo n.co.uk/js-index.htm> jscr maths, dates, sources.
    <URL:http://www.merlyn.demo n.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.

    Comment

    Working...