
Security News
The Nightmare Before Deployment
Season’s greetings from Socket, and here’s to a calm end of year: clean dependencies, boring pipelines, no surprises.
netlify-cms-widget-datetimezone
Advanced tools
This widget provides the datetimezone widget to store date, time, and timezone data for working with dates and times internationally. It was developed for conference.jamfire.io and was designed to use with Luxon.
Add the package to your project.
yarn add netlify-cms-widget-datetimezone
Configure Netlify CMS to use the widget.
// import libs
import CMS, { init } from "netlify-cms-app"
import { DateTimeZoneControl, DateTimeZonePreview } from "netlify-cms-widget-datetimezone"
// register datetimezone widget
CMS.registerWidget("datetimezone", DateTimeZoneControl, DateTimeZonePreview)
Add the widget to a field.
fields:
- { name: 'datetimezone', label: 'Start Time', widget: 'datetimezone' }
// import libs
import React from 'react';
import { DateTime } from "luxon";
// example date component
const DateComponent = ({ datetime, timezone, locale }) => {
// get the entry datetime and timezone
const datetimeOriginal = DateTime
.fromISO(value.datetime, { zone: value.timezone })
// display datetime as a local date to your visitors
const datetimeLocal = DateTime
.fromISO(value.datetime, {
zone: Intl.DateTimeFormat().resolvedOptions().timeZone
})
// display datetime in an i18n localized format
const datetimeLocalized = DateTime
.fromISO(value.dateTime, {
zone: { zone: value.timezone }
})
.setLocale(locale))
return(
<p>
Entry DateTime: {datetime.toLocaleString(DateTime.DATETIME_FULL)}<br />
Local DateTime: {datetimeLocal.toLocaleString(DateTime.DATETIME_FULL)}<br />
Localized DateTime: {datetimeLocalized.toLocaleString(DateTime.DATETIME_FULL)}
</p>
)
}
See CHANGELOG.md
See CONTRIBUTING.md
FAQs
DateTime with Timezone Netlify CMS Widget
The npm package netlify-cms-widget-datetimezone receives a total of 3 weekly downloads. As such, netlify-cms-widget-datetimezone popularity was classified as not popular.
We found that netlify-cms-widget-datetimezone demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Season’s greetings from Socket, and here’s to a calm end of year: clean dependencies, boring pipelines, no surprises.

Research
/Security News
Impostor NuGet package Tracer.Fody.NLog typosquats Tracer.Fody and its author, using homoglyph tricks, and exfiltrates Stratis wallet JSON/passwords to a Russian IP address.

Security News
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.