Skip to content

Commit

Permalink
makes sure time is local server time
Browse files Browse the repository at this point in the history
  • Loading branch information
isaric committed Jul 17, 2022
1 parent 9fdd8d6 commit 03d4fcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion set-time.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func main() {

// set time again every 30 minutes
for true {
ct := time.Now()
ct := time.Now().Local()
_, err := cam.CallMethod(getOnvifDateTime(ct))
if err != nil {
fmt.Printf("Could not set time. %s Exiting!\n", err)
Expand Down

0 comments on commit 03d4fcb

Please sign in to comment.