small fixes and refactoring
This commit is contained in:
@@ -100,7 +100,7 @@ func updateBooking(w http.ResponseWriter, r *http.Request) {
|
||||
log.Println("Error getting booking!", err)
|
||||
continue
|
||||
}
|
||||
parsedTime, err := time.ParseInLocation("15:04", possibleBooking[0], time.Local)
|
||||
parsedTime, err := time.ParseInLocation("15:04", possibleBooking[0], booking.Timestamp.Location())
|
||||
if err != nil {
|
||||
log.Println("Error parsing time!", err)
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user