JavaScript and UTC

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Garima Sharma
    Senior Member
    • Feb 2014
    • 171

    JavaScript and UTC

    How can I get JavaScript to use UTC and not local time and recognise that the time difference is 2.5 hours?
    Because I use UTC with a start and finish time and duration values and I use JavaScript to check if there are any mistakes when submitting these times eg. UTC 00:30 to UTC 03:00 = 2.5 hours, but when the clocks change then this time could be either 1.5 or 3.5 hours.

    Thanks
Working...