Browse Source

Allow znc timezone to be configured

Since 1.0, znc has allowed you to specify the user's timezone:
conveniently, in tzinfo format.  This allows the user to configure and
specify that timezone.

This matters because it affects the timestamps that znc issues when
playing back the buffer after a disconnection.

for more info see:
- http://wiki.znc.in/ChangeLog/1.0#Timezones
- http://wiki.znc.in/Configuration

There is also a zpush_timezone configuration option, which could at some
point be unified with irc_timezone into a common configuration item.
Philip Potter 10 years ago
parent
commit
56633b3b12
2 changed files with 2 additions and 0 deletions
  1. 1
    0
      roles/ircbouncer/templates/var_lib_znc_configs_znc.conf.j2
  2. 1
    0
      vars/user.yml

+ 1
- 0
roles/ircbouncer/templates/var_lib_znc_configs_znc.conf.j2 View File

@@ -63,6 +63,7 @@ Version = 1.0
63 63
 	QuitMsg = {{ irc_quitmsg }}
64 64
 	RealName = {{ irc_realname }}
65 65
 	TimestampFormat = [%H:%M:%S]
66
+	Timezone = {{ irc_timezone }}
66 67
 
67 68
 	<Pass password>
68 69
 	        Method = sha256

+ 1
- 0
vars/user.yml View File

@@ -20,6 +20,7 @@ irc_realname: TODO
20 20
 irc_quitmsg: TODO
21 21
 irc_password_hash: TODO
22 22
 irc_password_salt: TODO
23
+irc_timezone: TODO      #Example: "America/New_York"
23 24
 
24 25
 # mailserver
25 26
 mail_db_password: TODO

Loading…
Cancel
Save