瀏覽代碼

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 年之前
父節點
當前提交
56633b3b12
共有 2 個檔案被更改,包括 2 行新增0 行删除
  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 查看文件

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

+ 1
- 0
vars/user.yml 查看文件

20
 irc_quitmsg: TODO
20
 irc_quitmsg: TODO
21
 irc_password_hash: TODO
21
 irc_password_hash: TODO
22
 irc_password_salt: TODO
22
 irc_password_salt: TODO
23
+irc_timezone: TODO      #Example: "America/New_York"
23
 
24
 
24
 # mailserver
25
 # mailserver
25
 mail_db_password: TODO
26
 mail_db_password: TODO

Loading…
取消
儲存