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

UTC Timezone for Date Widget (without being a string) #1307

Closed
ghost opened this issue Apr 21, 2018 · 5 comments
Closed

UTC Timezone for Date Widget (without being a string) #1307

ghost opened this issue Apr 21, 2018 · 5 comments

Comments

@ghost
Copy link

ghost commented Apr 21, 2018

- Do you want to request a feature or report a bug?
Feature
- What is the current behavior?
Date widget only returns date in Local Timezone
- If the current behavior is a bug, please provide the steps to reproduce.

- What is the expected behavior?
Ability to return date in specified timezone

- Please mention your versions where applicable.

Netlify CMS version:
Browser version:

Node.JS version:
Operating System:

- Please link or paste your config.yml below if applicable.

@tech4him1
Copy link
Contributor

You sure can, just set the format option to a string with the value that you want. It accepts any Moment.js format: https://momentjs.com/docs/#/displaying/format/.

@ghost
Copy link
Author

ghost commented Apr 21, 2018

Wouldn't it be wrapped in quotes?

@tech4him1
Copy link
Contributor

The output will be a string, if that's what you are asking?

@tech4him1 tech4him1 reopened this Apr 21, 2018
@ghost
Copy link
Author

ghost commented Apr 21, 2018

Yes i was requesting for ISO8601 date in UTC, without the strings

@ghost ghost changed the title UTC Timezone for Date Widget UTC Timezone for Date Widget (without being a string) Apr 21, 2018
@erquhart
Copy link
Contributor

Should be fixed by #1296.

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