gerald1248 / openshift-backup

nightly project backups for clusters
MIT License
9 stars 7 forks source link

expand templates to allow specification of timezone #11

Open b2cc opened 6 years ago

b2cc commented 6 years ago

Please excuse my nagging... I noticed that time in the suffix of the backupfiles is off since the container runs in UTC per default. Although im aware this is a rather minor nuisance it can easily be fixed by injecting the "TZ" environment variable:

spec:
  template:
    spec:
      containers:
      - env:
        - name: TZ
          value: "Europe/Berlin"

I guess this could be added to the "exports" file with a default of "UTC" if not specified otherwise.

gerald1248 commented 6 years ago

Excellent suggestion. Happy to add. (Need to check how the base image handles time zones.)