{"record":{"id":"6ef8091188805401","repo":"k3s-io/k3s","slug":"server-time-isn-t-set-properly-v","errorCode":null,"errorMessage":"server time isn't set properly: %v","messagePattern":"server time isn't set properly: (.+?)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/cli/cmds/log.go","lineNumber":71,"sourceCode":"\t\t\trErr = err\n\t\t\treturn\n\t\t}\n\n\t\tif err := checkUnixTimestamp(); err != nil {\n\t\t\trErr = err\n\t\t\treturn\n\t\t}\n\n\t\tsetupLogging()\n\t})\n\treturn rErr\n}\n\nfunc checkUnixTimestamp() error {\n\ttimeNow := time.Now()\n\t// check if time before 01/01/1980\n\tif timeNow.Before(time.Unix(315532800, 0)) {\n\t\treturn fmt.Errorf(\"server time isn't set properly: %v\", timeNow)\n\t}\n\treturn nil\n}\n\nfunc setupLogging() {\n\tgrpclog.SetLoggerV2(grpclog.NewLoggerV2(io.Discard, io.Discard, io.Discard))\n\tif Debug {\n\t\tlogrus.SetLevel(logrus.DebugLevel)\n\t}\n}\n","sourceCodeStart":53,"sourceCodeEnd":82,"githubUrl":"https://github.com/k3s-io/k3s/blob/6ba341e396edc16b8dcae978a7c5e3ac7ee5606e/pkg/cli/cmds/log.go#L53-L82","documentation":"Error \"server time isn't set properly: %v\" thrown in k3s-io/k3s.","triggerScenarios":"Thrown at pkg/cli/cmds/log.go:71 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"6ba341e396edc16b8dcae978a7c5e3ac7ee5606e","analyzedAt":"2026-08-15T16:27:54.286Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}