2
0

(dateInput) Add format option and improve parsing

Use date-fns for custom format and make sure dates are timezone independants

Closes #533, closes #592
This commit is contained in:
Baptiste Arnaud
2023-09-05 10:34:56 +02:00
parent 111fb323b1
commit 9e8fa124b5
14 changed files with 100 additions and 86 deletions

12
pnpm-lock.yaml generated
View File

@ -543,11 +543,14 @@ importers:
specifier: workspace:*
version: link:../../packages/deprecated/bot-engine
chrono-node:
specifier: ^2.6.4
version: 2.6.4
specifier: 2.6.6
version: 2.6.6
cors:
specifier: 2.8.5
version: 2.8.5
date-fns:
specifier: ^2.30.0
version: 2.30.0
eventsource-parser:
specifier: ^1.0.0
version: 1.0.0
@ -11206,8 +11209,8 @@ packages:
resolution: {integrity: sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg==}
engines: {node: '>=6.0'}
/chrono-node@2.6.4:
resolution: {integrity: sha512-weCpfagfISvUMleIIqCi12AL9iQYn1ybX/6RB9qolynvHNvYlfdJete51uyB8TmwDTgEeKFEq0I5p/SHhOfhsw==}
/chrono-node@2.6.6:
resolution: {integrity: sha512-RObSvo49wRL/ek6U4lMuZjmCi//gLM2GsHBMauIw/50fBbP6To3F99vn88IRL9w4qC39tFRnJZc6uiGrOi1oGw==}
engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
dependencies:
dayjs: 1.11.9
@ -12063,7 +12066,6 @@ packages:
engines: {node: '>=0.11'}
dependencies:
'@babel/runtime': 7.22.15
dev: true
/dayjs@1.11.9:
resolution: {integrity: sha512-QvzAURSbQ0pKdIye2txOzNaHmxtUBXerpY0FJsFXUMKbIZeFm5ht1LS/jFsrncjnmtv8HsG0W2g6c0zUjZWmpA==}