mirror of
https://github.com/Luzifer/go-latestver.git
synced 2024-12-20 18:41:17 +00:00
Fix: Write change log with current time
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
230d9211ee
commit
0d3781fc26
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@ func checkForUpdates(ce *database.CatalogEntry) error {
|
||||||
if err = storage.Logs.Add(&database.LogEntry{
|
if err = storage.Logs.Add(&database.LogEntry{
|
||||||
CatalogName: ce.Name,
|
CatalogName: ce.Name,
|
||||||
CatalogTag: ce.Tag,
|
CatalogTag: ce.Tag,
|
||||||
Timestamp: vertime,
|
Timestamp: time.Now().Truncate(time.Second).UTC(),
|
||||||
VersionTo: ver,
|
VersionTo: ver,
|
||||||
VersionFrom: cm.CurrentVersion,
|
VersionFrom: cm.CurrentVersion,
|
||||||
}); err != nil {
|
}); err != nil {
|
||||||
|
|
Loading…
Reference in a new issue