-
-
Save parzibyte/2c72f134d8498808ad6bfbd739d0bc16 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pausa, err := convertirFechaATime(dispositivo.FechaPausa) | |
finAnterior, err := convertirFechaATime(dispositivo.Fin) | |
ahora := time.Now() | |
_, offset := ahora.Zone() | |
transcurrido := time.Since(pausa) + (time.Duration(time.Second) * time.Duration(offset)) | |
nuevoFin := finAnterior.Add(transcurrido) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment