Loading ...
Sorry, an error occurred while loading the content.

603Re: json date format 2006-12-03T13:56:21

Expand Messages
  • Jon Meyer
    Dec 4, 2006
    • 0 Attachment
      Milliseconds don't seem that critical, but what about generating UTC
      and appending a "Z"? i.e.

      return '"' + x.getFullYearUTC() + '-' +
      f(x.getMonthUTC() + 1) + '-' +
      f(x.getDateUTC()) + 'T' +
      f(x.getHoursUTC()) + ':' +
      f(x.getMinutesUTC()) + ':' +
      "Z"

      How would the server know what the time means otherwise?

      Cheers

      Jon
    • Show all 12 messages in this topic