CHANGE: added timezone to db connection

This commit is contained in:
2025-02-22 01:02:10 +01:00
parent 5f886a46c5
commit 4a0d3a850a
5 changed files with 9 additions and 9 deletions

View File

@@ -209,7 +209,7 @@ func checkLastBooking(b Booking) bool {
func (b *Booking) UpdateTime(newTime time.Time){
hour, minute, _ := newTime.Clock()
if(hour == b.Timestamp.Local().Hour() && minute == b.Timestamp.Local().Minute()){
if(hour == b.Timestamp.Hour() && minute == b.Timestamp.Minute()){
return
}
// TODO: add check for time overlap