react-live-clock
Advanced tools
Comparing version 6.1.22 to 6.1.23-beta
{ | ||
"name": "react-live-clock", | ||
"version": "6.1.22", | ||
"version": "6.1.23-beta", | ||
"description": "React Live Clock", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -6,3 +6,3 @@ 'use client'; | ||
import Moment from 'react-moment'; | ||
import 'moment-timezone'; | ||
import momentTimezone from 'moment-timezone'; | ||
@@ -44,2 +44,6 @@ export default function ReactLiveClock(props) { | ||
useEffect(() => { | ||
momentTimezone.locale('locale'); | ||
}, [locale]); | ||
useEffect(() => { | ||
if (noSsr && document) { | ||
@@ -46,0 +50,0 @@ setNoSsr(false); |
@@ -236,2 +236,8 @@ import React from 'react'; | ||
<Panel | ||
code="<Clock format={'ddd DD MMM HH:mm'} locale={'de'} />" | ||
title="Set the display language and format"> | ||
<Clock format={'ddd DD MMM HH:mm'} locale={'de'} /> | ||
</Panel> | ||
<Panel | ||
code="<Clock style={{color: 'red'}} />" | ||
@@ -238,0 +244,0 @@ title="custom style"> |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9928697
85962
1