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

MomentTimezoneDataPlugin: Unknown options provided (defaultTimezone) #75

Open
jamesw-platinumseed opened this issue Jan 26, 2021 · 1 comment

Comments

@jamesw-platinumseed
Copy link

Following your instructions for setting a default TimeZone I get the error:

 MomentTimezoneDataPlugin: Unknown options provided (defaultTimezone). Supported options are: matchZones, matchCountries, startYear, endYear, cacheDir.

here is nuxt.config.js :

moment: {
   timezone: {
     defaultTimezone: 'America/Los_Angeles',
     matchCountries: 'US',
     startYear: 2020
   }
 },

Any other suggestions? I just need to make sure all dates and times are in PST - no matter where in the world a user is.

Copy link
Member

farnabaz commented Feb 3, 2021

Move defaultTimezone outside of timezone. Checkout configuration docs

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