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

[ember-moment] attempted to set timezone, but moment-timezone is not setup. #313

Open
mculpsf opened this issue Jul 29, 2019 · 2 comments
Open

Comments

@mculpsf
Copy link

mculpsf commented Jul 29, 2019

I'm getting [ember-moment] attempted to set timezone, but moment-timezone is not setup. and I've read through the other issues in this repo and tried everything with no luck.

$ ember -v

ember-cli: 2.18.2
node: 10.14.2
$ bower list

├── moment#2.24.0
├─┬ moment-timezone#0.5.25
│ └── moment#2.24.0
// environment.js

module.exports = function(environment) {
  let ENV = {
    // ...
    moment: {
      includeTimezone: 'all'
    }
  };
  return ENV;
};

Nothing related to moment in ember-cli-build.js.

Any ideas? Thanks!

@vvsalmin
Copy link

same problem here .. started when we took ember-auto-import in use :|

@vvsalmin
Copy link

vvsalmin commented Aug 20, 2019

got that working by adding

import 'moment-timezone';

on top of the file where I used .changeTimeZone(...) ... dunno why it worked but I'm happy with it now...

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

2 participants