Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Matt Johnson-Pint
    @mattjohnsonpint
    In reality, it only works on a handful of browsers today.
    Some browsers that have Intl support don't yet have tz support, so they return undefined here. Others don't have the API at all, and will blow up.
    And some mobile browsers will return garbage, such as a tz abbreviation rather than an IANA identifier.
    The Intl spec is formalized as "must return an IANA tz identifier" only as of version 2.0. Most browsers are only 1.0 compliant, if that.
    There's a line item in the compat table here: http://kangax.github.io/compat-table/esintl/
    Expand the DateTimeFormat section and you'll see two items at the bottom related to this.
    Matt Johnson-Pint
    @mattjohnsonpint
    Looking at the compat table, seems like FF is the main one falling behind. Better than last time I looked. :)
    Sergey Kucheyko
    @drgrey87
    ok, thanks for the info @mj1856
    Tony Xavier
    @vinzandtonz
    How can i import moment and moment-timezone in typescript (Angular 2) ?
    Sergey Kucheyko
    @drgrey87
    hi guys, how can i get list of zones that locate in 180 time zone ?
    Matt Johnson-Pint
    @mattjohnsonpint
    @drgrey87 - what are you asking about? I'm not sure what you mean.
    Sergey Kucheyko
    @drgrey87
    @mj1856 i mean, can i get list of zones that locate in +3:00 UTC for example, or get list of zones with extra data (UTC f.e.) by request moment.tz.names()? Or may be it will realise in the future.
    Sergey Kucheyko
    @drgrey87
    i use moment-timezone on server side so i have limited guessing functional on client side (via Intl object).
    Sergey Kucheyko
    @drgrey87
    It would be good for me if i could make request with data moment().utcOffset() to server and get some zone that locates in this UTC
    Matt Johnson-Pint
    @mattjohnsonpint
    @drgrey87 - Time zones aren't fixed to single offsets. Many have changed their standard offsets over time, and many change regularly for daylight saving time. It's not possible to directly correlate a single offset to a specific time zone without having additional information available.
    Andrea Falzetti
    @rexromae_twitter
    Has anyone experienced any issue with DST and timezone conversion 2 days ago?
    Matt Johnson-Pint
    @mattjohnsonpint
    @rexromae_twitter - you'll have to be more specific.
    Andrea Falzetti
    @rexromae_twitter
    I ran some tests with the latest version and it seems fixed. I had a node application running that was almost a year ago and on the 1st of november the conversion of time using moment-timezone was wrong by 1 hour. On the 2nd of noveber anyway, was correct. I tested using the latest version and it works fine. Thanks!
    Jordan Brant Baker
    @hexsprite
    Hi! Something seems off with Asia/Istanbul and Europe/Istanbul timezones. When I try to get the current time it's showing 1:22AM Instanbul timezone (I am in Pacific timezone currently 3:22 PM). If I go on the web all of the sites I see say it should be 2:22AM Istanbul local time
    OK nevermind, seems to be fixed in a newer version ;)
    Douglas Haubert
    @dhaubert
    I started a project using moment timezone, and I couldn't be here without congrats moment and moment tz team. Congratulations guys, you are doing a great job.
    Eric Stearns
    @estearns
    Hello! I'm trying to include moment-timezone into a project I'm working which uses gulp/react, and it's failing to parse latest.json. I'm not familiar with how to give it access to something like json-loader with gulp.
    Matt Johnson-Pint
    @mattjohnsonpint
    @estearns - really the easiest way is to use the pre-built "with data" files. Then you don't have to touch latest.json or .add or anything.
    Eric Stearns
    @estearns
    I will look into that - thanks Matt
    sgfgdf
    @sgfgdf_twitter
    Hello, guys! I'm using require.js as a module loader and grunt for a task runner. I want t o load moment and moment-timezone. What is the right way to do it?
    Francisco Caballero
    @fjcero
    Hello guys
    I have a problem with moment.tz.guess(), perhaps not a problem, but a concern
    Given a scenario that Locale TZ is undefined, moment gets a default timezone
    there is a way to specify a fallback TZ to avoid guessing?
    Francisco Caballero
    @fjcero
    the major issue right now I think is if local timezone is not defined guess() is getting another value for zoneScores instead of returning something like 'UTC' like http://pellepim.bitbucket.org/jstz/ does
    Jason Morawski
    @rpgdude
    hey guys I am having an issue running my karma unit tests, moment.tz is undefined?
    Jason Morawski
    @rpgdude
    figured it out, was a bug external to moment-timezone
    Jennoxxx
    @Jennoxxx
    Hi, for my tests I send a date with a bad format in a moment function so I get this warning "Deprecation warning: value provided is not in a recognized ISO format. moment construction falls back to js Date()...". Is it possible to silence a warning?
    Jennoxxx
    @Jennoxxx
    I stub the console.warn and now it's silent :)
    Matt Johnson-Pint
    @mattjohnsonpint
    @Jennoxxx - the easiest way is to provide a format as the second parameter during parsing. Even if you are intentionally passing a bad format for test - include the format that it normally would have used.
    anilenbake
    @anilenbake
    Hi ,
    I have a major issue with the timezone time :
    I want to convert this date/time string "2017-01-12 02:00:00 UTC" into browser local time zone .
    It is not working in Firefox for the chrome it is working fine
    Showing Invalid date any help?
    Jesse Atkinson
    @jsatk
    Browser specific bug. Hmm… I assume you’re on the latest of stable firefox and all that?
    Malik Harrison
    @Harrmalik
    i would use the moment javascript library
    Makes it easy to work with dates and timezones
    Robert Mennell
    @skatcat31
    If I use moment-timezone, do I also need to include moment or is timezone pulling that in?
    Malik Harrison
    @Harrmalik
    Or you can send me your code and I can see if theres a simpler fix
    Yes!
    Robert Mennell
    @skatcat31
    ... yes?
    oh wait nevermind, misread the package.json. Thanks!
    Malik Harrison
    @Harrmalik
    You need to include both libraries
    Robert Mennell
    @skatcat31
    I do? When I checked hte package.json for node.js it says it includes moment in itself, so you're sayign I ahve to include both and do a require for both??
    Malik Harrison
    @Harrmalik
    The package.json for node.js?
    When i used moment timezone, i always included moment as well