You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • Just changed the above - it should be (new Date()).getTimezoneOffset()

    But honestly I'd just use the second option... It's a bit cleaner IMO.

    I have to pull Date 2 times

    I'm not sure I understand? Once you have d set up that's all you need - no need to call Date again until the next time you draw.


Avatar for Gordon @Gordon started