ucphhpc / migrid-sync

MiGrid workspace where master branch is kept strictly in sync with SF upstream svn repo. Any development or experiments should use a branch. You probably want to fork your own clone or work e.g. on the edge branch if you wish to contribute.
GNU General Public License v2.0
3 stars 4 forks source link

Make timezone parsing more portable and robust #81

Closed jonasbardino closed 3 months ago

jonasbardino commented 3 months ago

Make timezone parsing in generateconfs more portable and robust to make it work even inside docker and similar sparse envs where timedatectl is not available. Tries TZ environment, /etc/localtime symlink to zone file and existing timedatectl command in turn.

Fixes issue with make PY=2 test spewing errors because docker doesn't have timedatectl included.

jonasbardino commented 3 months ago

Reviewed and merged through svn now. Thanks for the contribution and clean up @albu-diku