Ask questions about installing and configuring ProcessMaker 3
By springhigh
#814530
HI PM
I have an issue with dates in dynaforms, that seem to jump back to to previous day.
i.e. the dynaform will show 2018/01/01 but a report table will show 2017/12/31
I have tried everything in the documentation, and all obvious solutions.

My question is what would the correct system settings be for PM hosted, and users in Africa/Johannesburg (+02:00)
And what would need to be set to UCT or Africa/Johannesburg below

Hardware Time ?
System Time ?
PHP TimeZone ?
Mysql Timezone ?
Virtual Host (Virtual ost specific settings ?)
PM System TimeZone ?
PM User TimeZone ?

Edit
Pm 3.2.1
Centos7
Apache2.4
Php 5.6
MySQL 5.5.6

Many thanks
User avatar
By amosbatto
#814537
You need to set the time_zone in your php.ini file, your env.ini file and set the system clock on your server.
By springhigh
#814552
just to follow up on this, to be 100% sure :)

Would UCT be set for any of these ?

time_zone in your php.ini. (UTC or local time Zone i.e. Africa/Johannesburg)
env.ini (UTC or local time Zone i.e. Africa/Johannesburg)
system clock (UTC or local time Zone i.e. Africa/Johannesburg)

thanks
User avatar
By amosbatto
#814557
In your php.ini file you should have:
date.timezone = "Africa/Johannesburg"

In ProcessMaker's env.ini file, you should have:
time_zone = "Africa/Johannesburg"

In theory it shouldn't matter what time zone you use for the clock on your server, since PHP will automatically convert from the time zone of the server to the time zone that you configure in php.ini and env.ini, but I recommend that you also use the correct time zone for South Africa, which you should see with the date command in Linux servers.

For example, I see this on my Linux server in Bolivia:
Code: Select all
$ date
Mon May 28 19:51:14 BOT 2018

Hello. For rental housing, there are software solu[…]

Experience heightened pleasure with Cenforce 100 M[…]

Get an instant solution to move emails to MBOX for[…]

Most Demanding OST to PST Converter

The most demanding OST to PST Converter is TrijaT[…]