2 Replies Latest reply on Mar 12, 2008 6:06 AM by Asesino

    How to calculate time for diffrent time zones

    Asesino Level 1
      I have a simple clock that shows the current time using the get.Time command. My problem is this. I'm in the central time zone. So to calculate Pacific time I subtract 2 hours from hours like so
      "hours = mydate.getHours() - 2 ;" So if it is 2pm it should be 12pm in the pacific. Doing my method will show that it is 12am when it is not. How can I fix this? Thanks in advance. Below is my code. I'm hoping that with a fix I can do the same for other time zones.