Nick Holden ef5ff031da
feat: add pickerUtc option to datetime widget (#3721)
I have a field that I would like to contain just a date (with no specific
time). When I configure the datetime widget with sensible options for
a date-only field, dates are stored properly in the saved markdown,
but when I load those dates in the UI, I see the date before.

This is happening because the DateTime component from the
react-datetime library uses local timezones. It loads the date as the
start of day UTC and then converts to the local timezone, which is
going to be the previous day in any timezone with a negative UTC offset,
including all of the Americas.

This change adds a pickerUtc option to the datetime widget so that users
can specify when they would like the datetime picker to display times in
UTC rather than in the local timezone. By setting this new option to
true on date-only fields, users can ensure that everyone sees the same
date in the picker regardless of local timezones.
2020-05-13 11:44:01 +03:00
2020-01-19 17:53:11 +02:00
2016-09-22 09:36:14 -07:00
2019-10-23 13:58:41 -04:00

Netlify CMS

A CMS for static site generators. Give users a simple way to edit and add content to any site built with a static site generator.

Community Chat

Join us on Slack

How It Works

Netlify CMS is a single-page app that you pull into the /admin part of your site.

It presents a clean UI for editing content stored in a Git repository.

You setup a YAML config to describe the content model of your site, and typically tweak the main layout of the CMS a bit to fit your own site.

When a user navigates to /admin/ they'll be prompted to log in, and once authenticated they'll be able to create new content or edit existing content.

Read more about Netlify CMS Core Concepts.

Installation and Configuration

The Netlify CMS can be used in two different ways.

  • A Quick and easy install, that requires you to create a single HTML file and a configuration file. All the CMS JavaScript and CSS are loaded from a CDN. To learn more about this installation method, refer to the Quick Start Guide
  • A complete, more complex install, that gives you more flexibility but requires that you use a static site builder with a build system that supports npm packages.

Contributing

New contributors are always welcome! Check out CONTRIBUTING.md to get involved.

Change Log

This project adheres to Semantic Versioning. Every release is documented on the Github Releases page.

License

Netlify CMS is released under the MIT License. Please make sure you understand its implications and guarantees.

Thanks

Services

These services support Netlify CMS development by providing free infrastructure.

travis-ci browserstack Cypress.io

Description
Modifizierte Version des inzwischen eingestellten Static CMS
Readme
Languages
TypeScript 84.2%
MDX 8.2%
JavaScript 4%
CSS 2.6%
HTML 1%