Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong time in nextcloud.log #3345

Closed
Sanookmakmak opened this issue Feb 1, 2017 · 4 comments
Closed

Wrong time in nextcloud.log #3345

Sanookmakmak opened this issue Feb 1, 2017 · 4 comments

Comments

@Sanookmakmak
Copy link

Steps to reproduce

  1. date
  2. tail -f nextcloud.log

Expected behaviour

Output of the date command should be the same as in nextcloud.log

Actual behaviour

Date in nextcloud.log is wrong

Server configuration

Operating system:
Ubuntu 16.04

@skjnldsv
Copy link
Member

skjnldsv commented Feb 1, 2017

Hi!
Is your php timezone correctly set?

The log uses gmt time.

@KB7777
Copy link
Contributor

KB7777 commented Feb 1, 2017

[root@nextcloud ~]# grep timezone /var/www/html/nextcloud/config/config.php
'logtimezone' => 'Europe/Warsaw',
[root@nextcloud ~]#

https://docs.nextcloud.com/server/11/admin_manual/configuration_server/config_sample_php_parameters.html?highlight=trash#logging

@skjnldsv
Copy link
Member

skjnldsv commented Feb 1, 2017

And your php settings?

@Sanookmakmak
Copy link
Author

And your php settings?

'logtimezone' => 'UTC',

;-)

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants