I have a cronjob, which should zip a file once a day to a given directory. It looks like this:
It’s working like a charm. But there are 2 small bugs, which I cannot crack. The zip-file which is generated has the server-timezone as a datetime-“timestamp” and not the one I’m in (GMT+2). And therefor the crontab isn’t executed on MY 00:00am, but on 00:00am of the servers time.
I could change the execution-time of the script, so that it will be executed on my 00:00am, but then there will still be “troubles” with the correct datetime-“timestamp” of the filename.
Does anyone has any idea on how to change the Crontab-timezone? I have no problem changing it for bash or for my php-Scripts.
PS: I have the “Happy Hosting”-plan so it’s a shared-server.