javascript - Date() not accounting for Daylight Savings in website script, but does when executed in Firefox console -


I am experiencing a problem with Firefox on Firefox while receiving the current time but it only appears When the script tag of our website for my local timezone (GMT + 0000), daylight savings are applied properly and produces the date () IST / BST (GMT +0100). But when I currently test for other timezones (ADT in this example), daylight saving is not being accounted for

The system time is Friday 1 August 07:42:56 on ADT 2014 Setting up, running:

  console.log (new date ());  
  Friday 01 August 2014 06:42:56 GMT-0500 (EDT)   

/ pre>

However, the Firefox console In the "New Date", while executing, or on the test html page, the value returned is correct:

  Fri Aug 01 07 07: 42:56 GMT-0400 (EDT) < / Code> 

This problem does not happen either on Windows or I think the time offset offset is adjusted so that time is technically correct, but I do not know if it is executed on our website One Looks value produces why. Till now:

  • "New date (date now ())"
  • Dodge date / postage stamp:
  • P>

    Many browsers, including Firefox, need to restart the browser completely after you change the time zone to provide the right results. Before checking again, close all browser windows and restart the problem should be fixed.

    An exception to this is Internet Explorer on Windows, which subscribes to OS messages and resets correctly without resume.


Comments

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -