Topic: Hour when loged in

Hello.

Even if I reset cache the hour of posts for loged in users is displayed -2.
I tested it by mobile and pc.

Can you solve it?

Re: Hour when loged in

https://i.ibb.co/7SqZRXJ/qqq.png

Parserus, UserAgentAnalyzer.
I speak only Russian  :P

Re: Hour when loged in

Yes. It is negative.
Look:
afj.ro/E3281EE8-C5C2-4B87-A4BF-98720F65B45A.png
124.97 KB
Today, 11:01 AM
image/x-generic
0644
afj.ro/12427436-E0C9-4366-8D14-A21E64C8B546.png
143.05 KB
Today, 11:01 AM
image/x-generic
0644

Re: Hour when loged in

I see one guest and one user:
https://i.ibb.co/bbTws8G/qqq2.png

P.S. I see you have another problem: your resources are loaded via the http protocol. If your site works only using the https protocol, then add two lines to the end of the config.php file:

$_SERVER['HTTPS'] = 'on';
$_SERVER['SERVER_PORT'] = '443';

If your site works via http and https, then you need to correctly configure the transfer of environment variables from the server to php.

Parserus, UserAgentAnalyzer.
I speak only Russian  :P

5 (edited by vasileovidiudruta 2022-01-05 10:50)

Re: Hour when loged in

Yes the problem is with the hour of the posts for guest being different than registered user for the same post. Can tou solve it to be for the registered user like is for guest? Because hour displayed for guest is correct one.

Thank you for the tip also, but we do not need https. Give me a good reason to use it as in 21 years of online I couldn’t and still can’t find one.

Re: Hour when loged in

For each user, the displayed time is taken from the settings in his profile: Your profile → Settings → Your timezone.

For all guests, the displayed time is taken from the settings in the admin panel: Administration → Settings → Setup → Default timezone
For each guest there is no automatic recalculation of time for his time zone.


You don't need it, but browsers automatically translate the user to https if it's available on the site smile As a result, users see a broken site due to the browser preventing it from displaying mixed content:
https://i.ibb.co/k2yvLNH/err2.png

Parserus, UserAgentAnalyzer.
I speak only Russian  :P

Re: Hour when loged in

Thank you for profile settings tip.

I’ll not configure php to load https, instead I’ll redirect all https to http.

Re: Hour when loged in

Visman wrote:

For each user, the displayed time is taken from the settings in his profile: Your profile → Settings → Your timezone.

For all guests, the displayed time is taken from the settings in the admin panel: Administration → Settings → Setup → Default timezone
For each guest there is no automatic recalculation of time for his time zone.


You don't need it, but browsers automatically translate the user to https if it's available on the site smile As a result, users see a broken site due to the browser preventing it from displaying mixed content:
https://i.ibb.co/k2yvLNH/err2.png

Hello @Visman
Out of topic but is this a new, style-stripped version of punBB or it's just CSS did not load?
I need something like this to built my own style/theme from scratch. Thanks.

Re: Hour when loged in

>Out of topic but is this a new, style-stripped version of punBB or it's just CSS did not load?
This is a misconfigured server. My browser refuses to accept mixed protocol styles.

>I need something like this to built my own style/theme from scratch. Thanks.
Copy the style /style/Oxygen/ folder.
Delete css files from it except Oxygen.min.css.
In the Oxygen.php file, set up the correct file paths.
And edit the Oxygen.min.css file to suit your requirements.

Parserus, UserAgentAnalyzer.
I speak only Russian  :P