Set timestamp 1 second into the future
This commit is contained in:
parent
c44567a1d8
commit
12a3cef645
2
main.go
2
main.go
@ -291,7 +291,7 @@ func download(current time.Time) {
|
|||||||
|
|
||||||
// Update the times so the latest file is the uncompressed file
|
// Update the times so the latest file is the uncompressed file
|
||||||
currentTime := time.Now()
|
currentTime := time.Now()
|
||||||
err = os.Chtimes(filepath.Join(*destination, sqlite_filename), currentTime, currentTime)
|
err = os.Chtimes(filepath.Join(*destination, sqlite_filename), currentTime.Add(time.Second), currentTime.Add(time.Second))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
Fatal(err)
|
Fatal(err)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user