2.0.5 • Published 6 years ago

@keystone-alpha/fields-datetime-utc v2.0.5

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

DateTimeUtc

DateTimeUtc fields represent points in time.

Accepts only values that include an offset, explicitly or implicitly (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: {
    lastOnline: { type: DateTimeUtc },
  },
});