| Summary: | It's better to use current time from server instead of client to get resource age when using 'oc get/deploy/describe' etc | ||
|---|---|---|---|
| Product: | OKD | Reporter: | Xingxing Xia <xxia> |
| Component: | oc | Assignee: | Juan Vallejo <jvallejo> |
| Status: | CLOSED NOTABUG | QA Contact: | Wei Sun <wsun> |
| Severity: | low | Docs Contact: | |
| Priority: | low | ||
| Version: | 3.x | CC: | aos-bugs, jvallejo, mmccomas, wjiang |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-08-01 18:02:14 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Xingxing Xia
2016-01-18 06:48:55 UTC
Similar with this bug: https://bugzilla.redhat.com/show_bug.cgi?id=1270436 The "CreationTimestamp" for a pod is created by the server. The reason you are seeing different results when changing your client's time is because your client interprets the pod's timestamp according to what it thinks the current "date" is. A solution for getting around this would be to expose the server's Date through the api, and have the client parse the timestamp using that, however after talking with David Eads, this is not something that can be done. |