Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript time zone converter

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #234815
    zaahideen
    Participant

    im looking for some sort of plugin/script which can convert a specified time into a selected timezone.

    e.g. on my site i have an event taking place at 10pm. i need the user to have the ability to select from a drop down menu a certain timezone which will then convert the 10pm to the selected timezone.

    any suggestions?

    thanks

    #234821
    Beverleyh
    Participant

    Google provides some interesting results: https://www.google.co.uk/#safe=strict&q=javascript+time+zones

    Maybe try http://tzdata-javascript.org/ – the ‘Time compare’ and ‘Convert localtime’ demos look promising.

    #234823
    nkrisc
    Participant

    You might try using th Moment.js Timezone library: http://momentjs.com/timezone/

    Whatever you choose, I wouldn’t recommend trying to implement timezones aware times yourself.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.