Red Hat Bugzilla – Bug 1315248
[RFE] task export to convert times from UTC to local time zone
Last modified: 2017-08-03 13:25:53 EDT
Description of problem:
Currently, task export contains times in UTC. That is a bit confusing when one needs to correlate a task execution time frame (with times in the UTC) with other logs (with times in local timezone). One nas to keep in mind the difference every time and has to convert the times - that is error prone.
Please update task export (or the way how the tasks are written to psql) to provide date× in local timezone.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Have a Satellite in non-UTC timezone
2. Create a task (import manifest, sync a repo, register a contetn host, whatever)
3. Get task export:
4. Check in the export when the task was started/finished
4. task export having times in UTC
4. task export to have times in local timezone
Moving 6.2 bugs out to sat-backlog.
- foreman tasks (satellite.example.com/foreman_tasks/tasks) have timestamps in local timezone - that's OK
- dynflow tasks (/foreman_tasks/dynflow) have timestamps in UTC - that's not OK
/me tried some hack in removing "utc" references in dynflow code but it didnt help
do you have an easy idea why dynflow writes all timestamps in UTC and not in local timezone, like foreman-tasks does?
Becuase dynflow itself is a low-level tool, that can serve users from different timezones and it itself doesn't need the concept of timezones for the thing it's doing. From implementation point of view, it's more useful to store all the times in UTC, when it comes to scheduling, timeouts etc.
(In reply to Ivan Necas from comment #7)
> Becuase dynflow itself is a low-level tool, that can serve users from
> different timezones and it itself doesn't need the concept of timezones for
> the thing it's doing. From implementation point of view, it's more useful to
> store all the times in UTC, when it comes to scheduling, timeouts etc.
It makes sense to _store_ times in UTC. I am asking for _showing_ the times to end users in the timezone of the server.
Thank you for your interest in Satellite 6. We have evaluated this request, and we do not expect this to be implemented in product in the forseeable future. We are therefore closing this out as WONTFIX. If you have any concerns about this, please feel free to contact Rich Jerrido or Bryan Kearney. Thank you.