fix
This commit is contained in:
parent
e7f0fb665d
commit
ce31f71e9e
@ -1,4 +1,3 @@
|
|||||||
// PostgreSQL uses 1 BC for offset zero; there is no year zero in its timestamp syntax.
|
|
||||||
export const parseTemplateDate = (value) => {
|
export const parseTemplateDate = (value) => {
|
||||||
const match = /^(\d+)-(\d{2})-(\d{2})[T ](\d{2}:\d{2}:\d{2}(?:\.\d+)?)( BC)?$/.exec(value || '');
|
const match = /^(\d+)-(\d{2})-(\d{2})[T ](\d{2}:\d{2}:\d{2}(?:\.\d+)?)( BC)?$/.exec(value || '');
|
||||||
if (!match) return null;
|
if (!match) return null;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user