removed Formatduration and fixed rounding error, working on overtime calculation
This commit is contained in:
@@ -116,7 +116,7 @@ func updateBooking(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
newBooking := (*models.Booking).New(nil, user.CardUID, 0, int16(check_in_out))
|
||||
newBooking.Timestamp = timestamp
|
||||
err = newBooking.InsertTimestamp()
|
||||
err = newBooking.InsertWithTimestamp()
|
||||
if err != nil {
|
||||
log.Println("Error inserting booking", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user