2020-05-13, 11:41 AM
Hi guys,
I am getting wrong time in subscribedmember email notification.
MyBB Version 1.8.21
PHP Version 5.6.40-1~dotdeb+7.1
SQL Engine MySQLi 5.5.60
Server:
/etc/timezone > Europe/Bratislava
$date: Wed May 13 11:40:01 CEST 2020
ACP > Default Timezone Offset > GMT +1
ACP > Day Light Savings Time > Yes
User1
Username: apache-user
CP > TimeZone > GMT -1
CP > Daylight Saving Time correction > Always
Local time: 09:40:01
User2
Username: gasper
CP > TimeZone > GMT +1
CP > Daylight Saving Time correction > Always
Local time: 11:40:01
Post view as apache-user:
![[Image: wJAxCbp.png]](https://camo.mybb.com/af635031292fb385675dc964651bc522b39fcc5e/68747470733a2f2f692e696d6775722e636f6d2f774a41784362702e706e67)
Email received by user gasper:
![[Image: DHpepgK.png]](https://camo.mybb.com/5469448e653a93c99b240f4e303231c1fbf67448/68747470733a2f2f692e696d6775722e636f6d2f4448706570674b2e706e67)
Red labelled time should be "(Today, 11:42)". Because then user gasper wrote the post in his local time. This time (09:42) is in apache-user's timezone, which is wrong, because recipient is gasper.
Do you know what's wrong?
I am getting wrong time in subscribedmember email notification.
MyBB Version 1.8.21
PHP Version 5.6.40-1~dotdeb+7.1
SQL Engine MySQLi 5.5.60
Server:
/etc/timezone > Europe/Bratislava
$date: Wed May 13 11:40:01 CEST 2020
ACP > Default Timezone Offset > GMT +1
ACP > Day Light Savings Time > Yes
User1
Username: apache-user
CP > TimeZone > GMT -1
CP > Daylight Saving Time correction > Always
Local time: 09:40:01
User2
Username: gasper
CP > TimeZone > GMT +1
CP > Daylight Saving Time correction > Always
Local time: 11:40:01
Post view as apache-user:
Email received by user gasper:
Red labelled time should be "(Today, 11:42)". Because then user gasper wrote the post in his local time. This time (09:42) is in apache-user's timezone, which is wrong, because recipient is gasper.
Do you know what's wrong?