Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
virtualguy committed May 21, 2024
1 parent 4d124a9 commit db495d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/ttnpb/udp/translation.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ func convertUplink(rx RxPacket, md UpstreamMetadata) (*ttnpb.UplinkMessage, erro

ggt := gpstime.Parse(time.Duration(*rx.Tmms) * time.Millisecond)

if time.Now().Add(gpsTimeDelta).After(ggt) && ggt.Add(gpsTimeDelta).Before(time.Now()) {
if time.Now().UTC().Add(gpsTimeDelta).After(ggt) && ggt.Add(gpsTimeDelta).Before(time.Now().UTC()) {
goGpsTime = ggt
goTime = goGpsTime
}
Expand Down

0 comments on commit db495d9

Please sign in to comment.