I'm in China and I've a friend who is in other countries. e.g. UK, USA, New Zealand...  I know his country's name in English and  time zone there.  But how can I know whether his country is using DST now or not? Any ideas?  Thank you!...
I need to offset the time by an hour if it's currently DST in the Pacific Time Zone. How can I determine the current daylight savings status of the Pacific Time Zone, regardless of the user's local timezone?  Here's what I have so far. &#...
My single-page javascript app retrieves data in JSON format via REST calls. Dates come formatted using the UTC timezone in standard ISO8601 format, such as 2011-02-04T19:31:09Z.  When signing up for the service, users select their timezone from a dro...
First off, I am NOT looking for whether DST is in effect locally.  I'm running a Node process that has data that has associated timestamps.  I need to convert those timestamps to a day/month/year in a specified time zone, but all I'm given is...
I have read many StackOverflow questions on the javascript new Date() object when it comes to daylight savings time lines -- as in when they are crossed. However, I haven't seen an answer about this particular problem or a way to work around it w...
I've run the following in the console on Firefox (version 21) and I'm getting results I don't expect.  new Date(1362891600000);  var date = new Date(1362891600000); var time = date.getHours(); new Date(date.setHours(date.getHours() + 24))...
I am trying to output a series of times in hour (on the hour) intervals within Javascript (so inside a web browser such as Firefox). This series of times will overlap the short day (losing an hour in spring) and long day (gaining an hour in autumn)....
After lots of hassle I finally found the actual problem. It's the gap induced by daylight saving and the fact that different browsers act differently if timezone is set on UTC+3:30 (I'm not sure of other timezones).  Here's a snippet to g...
I'm seeing some behavior I don't understand with Javascript date objects and DST transitions.  If I execute the following in Chrome's javascript console  var date = new Date(1268535600000); //2010-03-14T03:00:00.000Z (21:00 03-13 America/...
We are tracking down a bug in our application that seemingly is related to moment.js formatting.  Here's the problematic call (reproduced in Chrome, FF, and Edge, for reference):  moment('2016-03-13T23:59:59.999-06:00').format('YYYY-M...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.