Folders & Dashboards: Cleanup timestamps and error codes (#104665)

K8s: Fix timestamps and error codes
This commit is contained in:
Stephanie Hingtgen
2025-04-30 03:03:21 +03:00
committed by GitHub
parent a4f6953f27
commit 9968576acf
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
}