Skip to content

Commit

Permalink
change fixed date
Browse files Browse the repository at this point in the history
  • Loading branch information
vilhelmprytz committed May 30, 2024
1 parent 805dbb7 commit 027d46b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testing/ntp-example-server/ntpserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func main() {

fmt.Println("NTP Server started on", port)

fixedDate := time.Date(2002, time.September, 11, 14, 14, 0, 0, time.UTC)
fixedDate := time.Date(2002, time.June, 23, 6, 30, 0, 0, time.UTC)
fixedUnix := fixedDate.Unix()
fixedNTP := (uint64(fixedUnix) + NTP_EPOCH_OFFSET) << 32 // Shift left to put into the upper 32 bits

Expand Down

0 comments on commit 027d46b

Please sign in to comment.