This commit is contained in:
PotapovaA 2026-09-15 12:44:48 +03:00
parent e7f0fb665d
commit ce31f71e9e

View File

@ -1,4 +1,3 @@
// PostgreSQL uses 1 BC for offset zero; there is no year zero in its timestamp syntax.
export const parseTemplateDate = (value) => {
const match = /^(\d+)-(\d{2})-(\d{2})[T ](\d{2}:\d{2}:\d{2}(?:\.\d+)?)( BC)?$/.exec(value || '');
if (!match) return null;