Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timezone doesn't apply #311

Open
mikeelemuel opened this issue Jun 7, 2019 · 3 comments
Open

Timezone doesn't apply #311

mikeelemuel opened this issue Jun 7, 2019 · 3 comments

Comments

@mikeelemuel
Copy link

Versions

"ember-cli": "2.6.2",
"ember-moment": "4.1.0",

My template.hbs has a code below but doesn't show the correct date based on the timeZone defined on addon

    {{moment-format model.createdAt "MMM DD, YYYY · LT" timeZone="Singapore"}}

on my config/environment.js I also included the code below

        moment: {
          includeTimezone: 'all'
        },

Any response is much appreciated, thank you

@wagenet
Copy link

wagenet commented Jul 2, 2019

@mikeelemuel if you manually create a new moment object in the console does it have the tz method defined?

@cah-brian-gantzler
Copy link

we found that all did not work. tried ranges, no luck, The only thing we got to work or at least not error was below

'moment': {
      // Options:
      // 'all' - all years, all timezones
      // 'subset' - modern time zones
      // 'none' - no data, just timezone API
      includeTimezone: 'subset'
    },

I thought I would look in the code and see what was really happening but cant find it. Where in the code is this config item even being referenced?

Also the ember-try seems really out of date. I looked because the commits said there was an update of a dependency ember-awesome-macros which states it only supports 3.8 + was trying to figure out what this addon actually supports.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants