WebFaction
Community site: login faq

I see the webfaction server error logs and access logs show the Server Time.

Is it possible to change server time to my timezone, say for the error log files?

As this helps a lot in debugging.

asked 02 Apr '13, 06:43

Prajwal
10611830
accept rate: 33%

edited 02 Apr '13, 06:51


You can't set the TZ for your front-end access and error logs. They will always be in the server TZ (UTC).

If you want to set the TZ for your back-end logs, like those for an Apache instance installed with a Django app, then set your TZ environment variable in your apache2/bin/start script, eg:

export TZ="US/Eastern"

Don't forget to restart Apache after making that change.

This same technique should work for any other long-running daemon that writes to a log - i.e., just set the TZ environment variable for whatever environment it runs in.

permanent link

answered 02 Apr '13, 18:13

seanf
12.2k41836
accept rate: 37%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×113
×97
×28

question asked: 02 Apr '13, 06:43

question was seen: 9,425 times

last updated: 02 Apr '13, 18:13

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM