mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-30 19:52:20 +01:00
Merge pull request #445 from Guichaguri/fix/event-date-timezone
(Bug) Fix event date being changed to a day before from the browser timezone
This commit is contained in:
commit
9409de4fa0
@ -65,7 +65,7 @@ export const FormInput = <TFieldValues extends FieldValues, TInputType>({ id, re
|
||||
return num;
|
||||
}
|
||||
if (type === 'date') {
|
||||
const date: Date = new Date(value);
|
||||
const date: Date = new Date(value + 'T00:00:00');
|
||||
if (Number.isNaN(date) && nullable) {
|
||||
return null;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user