Fixing tz issue. SQLite uses UTC only so converting local time to UTC before saving
This commit is contained in:
parent
377f8a06be
commit
d1580028cf
1 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue