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 2b8c85e908
commit 73232031d4

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,
]