Skip to content
KeystoneJS LogoKeystoneJS (α)

DateTimeUtc

DateTimeUtc fields represent points in time.

Accepts only values that include an offset, explicitly or implicity (as in JS Date objects). Produces JS Date objects and ISO 8601 strings.

Unlike the core DateTime field type only the UTC value is stored.

Usage

keystone.createList('User', {
  fields: {
    email: { type: Text },
    lastOnline: { type: DateTimeUtc },
  },
});

Have you found a mistake, something that is missing, or could be improved on this page? Please edit the Markdown file on GitHub and submit a PR with your changes.

Edit Page