Fixing tz issue. SQLite uses UTC only so converting local time to UTC before saving

This commit is contained in:
Collin Duncan 2023-02-10 23:14:42 +01:00
parent 377f8a06be
commit d1580028cf
No known key found for this signature in database

View file

@ -156,8 +156,8 @@ export class Reservation {
this.id,
this.user.username,
this.user.password,
this.dateRange.start.format('YYYY-MM-DD HH:mm:ss'),
this.dateRange.end.format('YYYY-MM-DD HH:mm:ss'),
this.dateRange.start.utc().format('YYYY-MM-DD HH:mm:ss'),
this.dateRange.end.utc().format('YYYY-MM-DD HH:mm:ss'),
this.opponent.id,
this.opponent.name,
]