Hammer and timezones?

Latest response

Does hammer understand timezones, or am I stuck converting everything from/to UTC myself? I'd like to create a tool that allows my colleagues to easily schedule patching, but asking users to do the math and input in UTC is just asking for headaches.

Responses

I wonder if hammer supports the locale of the user that is logging in? eg if your locale is set to PST in the UI, and you execute a command via hammer, is that locale respected ?

so I ran a quick test , and that does seem to be the case. If you set the users Timezone correctly, the job will be scheduled appropriately to their timezone.

I switched my timezone to PST between those two schedulings.

ID   | DESCRIPTION                                                                      | STATUS | SUCCESS | FAILED | PENDING | TOTAL | START                    
-----|----------------------------------------------------------------------------------|--------|---------|--------|---------|-------|--------------------------
3312 | Run uname -n                                                                     | queued | N/A     | N/A    | N/A     | N/A   | 2018-02-23 17:00:00 -0800
3311 | Run uname -n                                                                     | queued | N/A     | N/A    | N/A     | N/A   | 2018-02-23 14:00:00 -0800

Thanks Will, I'll give that a shot.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.