summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorChris Oliver <excid3@gmail.com>2012-06-11 17:16:06 -0700
committerChris Oliver <excid3@gmail.com>2012-06-11 17:16:06 -0700
commit94fd3ad9a462e3b67b0bccb35f495a7704024318 (patch)
tree13b7332afb183f166ec6974ee991cab3011e4734 /README.md
parent82814fa304d4130005ff61563370bd15ce06b791 (diff)
parent04aa153b0b9b150ca350ec40b044d86a60c06b30 (diff)
downloadlogbot-94fd3ad9a462e3b67b0bccb35f495a7704024318.tar.xz
Merge pull request #17 from FiXato/master
Added support for per-channel timezone offsets.
Diffstat (limited to 'README.md')
-rw-r--r--README.md21
1 files changed, 21 insertions, 0 deletions
diff --git a/README.md b/README.md
index d7582f2..f18b780 100644
--- a/README.md
+++ b/README.md
@@ -11,3 +11,24 @@ Configuration is done inside logbot.py.
python logbot.py
Example logs at https://raw.github.com/excid3/logbot/master/example_logs/2011-10-22.html
+
+
+Channels with localised time
+-----
+LogBot now also supports having localised time on a per channel basis using the pytz library, allowing you to have the logs of specific channels use different timezones.
+Installing pytz should be as simple as running `easy_install --upgrade pytz`, see http://pytz.sourceforge.net/#installation for details.
+Don't worry, if you don't have pytz installed, LogBot will continue to show the logs timestamped with your system's localtime as it used to.
+
+Next you can create a simple text file at `~/.logbot-channel_locations.conf` (or wherever `CHANNEL_LOCATIONS_FILE` in logbot.py points to).
+On each line you can now specify a channel name, and the timezone location of which it should use the timezone offset, separated by a space. Example:
+
+ #excid3 America/Chicago
+ #netherlands Europe/Amsterdam
+ #aloha US/Hawaii
+ #space UTC
+
+Any channel not specified in this file will use the default timezone as specified in DEFAULT_TIMEZONE, which defaults to 'UTC'.
+
+If you want to see a list of all possible timezone location names you can use, run:
+
+ python -c 'import pytz;print pytz.all_timezones'