[release-12.0.1] Dashboards and Folders: cleanup timestamps and error codes (#104720)

K8s: Fix timestamps and error codes
This commit is contained in:
Stephanie Hingtgen
2025-04-29 22:44:44 +03:00
committed by GitHub
parent 18a9cd3636
commit 249bf8ac64
6 changed files with 33 additions and 12 deletions
@@ -36,12 +36,12 @@ func parseUnstructuredToLegacyFolder(item *unstructured.Unstructured) (*folder.F
url = dashboards.GetFolderURL(uid, slug)
}
created := meta.GetCreationTimestamp().UTC()
created := meta.GetCreationTimestamp().Local()
updated, _ := meta.GetUpdatedTimestamp()
if updated == nil {
updated = &created
} else {
tmp := updated.UTC()
tmp := updated.Local()
updated = &tmp
}