Evening chaps... to avoid the errors in the log and to cover all bases:
1. I set the timezone of my computer using "timedatectl set-timezone "
2. I set the timezone in Options/System Timezone.
2. I set the timezone in /etc/php/7.2/cli/php.ini
3. I set the timezone in /etc/php/7.2/apache2/php.ini
I could be wrong but I had none of these issues with 36.11.... any idea what ridiculous thing I am doing wrong?
thanks!
[attachment=0]php.PNG[/attachment]
brand new install 36.12 and Bionic - timezone not set correctly
brand new install 36.12 and Bionic - timezone not set correctly
- Attachments
-
- php.PNG (35.04 KiB) Viewed 3682 times
-
- Posts: 1336
- Joined: Sat Aug 31, 2019 7:35 am
- Location: San Diego
Re: brand new install 36.12 and Bionic - timezone not set correctly
I don't recall the need to do all that. Just the options one is required, I think.
But what's that version 1.34.26 doing in there?
But what's that version 1.34.26 doing in there?
Re: brand new install 36.12 and Bionic - timezone not set correctly
My 1.36.12 is exactly the same if I search the logs.
-
Re: brand new install 36.12 and Bionic - timezone not set correctly
Just to add -
Gives - 1.34.26
Code: Select all
curl https://update.zoneminder.com/version.txt
-
Re: brand new install 36.12 and Bionic - timezone not set correctly
Granted, I use a Docker image, but I had an issue with the time zone also. The Docker image uses Ubuntu as a base and I execute the following to fix the timezone in the container:
I expect in BASH you could doENV TZ America/New_York
RUN echo $TZ>/etc/timezone && cp /usr/share/zoneinfo/${TZ} /etc/localtime; sed -i -E 's,;?date.timezone ?=.*,date.timezone = America/New_York,' /etc/php/7.4/apache2/php.ini
Of course, if you're not on the America/New_York time zone this will need to be modified. Check the /usr/share/zoneinfo/ directory for the appropriate option.echo America/New_York>/etc/timezone && cp /usr/share/zoneinfo/America/New_York /etc/localtime; sed -i -E 's,;?date.timezone ?=.*,date.timezone = America/New_York,' /etc/php/7.4/apache2/php.ini
Re: brand new install 36.12 and Bionic - timezone not set correctly
Now updated.Magic919 wrote: ↑Tue Jan 11, 2022 10:02 am Just to add -
Gives - 1.34.26Code: Select all
curl https://update.zoneminder.com/version.txt
-