mIRC Home    About    Download    Register    News    Help

Print Thread
ZNC Time wrong reading from the server? #265644 26/06/19 01:03 AM
Joined: May 2018
Posts: 80
eahm Offline OP
Babel fish
OP Offline
Babel fish
Joined: May 2018
Posts: 80
Not sure how to explain what's going on here, so here are the two logs.

ZNC 1.7.4

mIRC 7.55:

Code
-
18:01:22 Caps supported: batch cap-notify echo-message multi-prefix server-time userhost-in-names znc.in/batch znc.in/self-message znc.in/server-time-iso
18:01:22 Caps set: batch multi-prefix server-time userhost-in-names
-
18:01:22 Password required
-
18:01:22 -irc.znc.in- *** You need to send your password. Configure your client to send a server password.
-
18:01:22 -irc.znc.in- *** To connect now, you can use /quote PASS <username>:<password>, or /quote PASS <username>/<network>:<password> to connect to a specific network.
-


mIRC 7.55.2084 Beta:

Code
-
18:03:02 Caps supported: batch cap-notify echo-message multi-prefix server-time userhost-in-names znc.in/batch znc.in/self-message znc.in/server-time-iso
01:03:03 Caps set: batch multi-prefix server-time userhost-in-names
-
01:03:03 Password required
-
01:03:03 -irc.znc.in- *** You need to send your password. Configure your client to send a server password.
-
01:03:03 -irc.znc.in- *** To connect now, you can use /quote PASS <username>:<password>, or /quote PASS <username>/<network>:<password> to connect to a specific network.
-

Re: ZNC Time wrong reading from the server? [Re: eahm] #265645 26/06/19 08:15 AM
Joined: Dec 2002
Posts: 4,519
Khaled Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 4,519
Thanks for your bug report.

Can you please include the raw debug log so that we can see the timezone prefix?

Also, what are your windows timezone and daylight savings settings?

Last edited by Khaled; 26/06/19 08:23 AM.
Re: ZNC Time wrong reading from the server? [Re: Khaled] #265646 26/06/19 08:29 AM
Joined: May 2018
Posts: 80
eahm Offline OP
Babel fish
OP Offline
Babel fish
Joined: May 2018
Posts: 80
Not sure I understand what you need, is this enough?

Thank you.

mIRC 7.55:

Code
-> ZNC.IP CAP LS 302
-> ZNC.IP NICK m
-> ZNC.IP USER m 0 * :...
<- :irc.znc.in CAP unknown-nick LS :batch cap-notify echo-message multi-prefix server-time userhost-in-names znc.in/batch znc.in/self-message znc.in/server-time-iso
-> ZNC.IP CAP REQ :batch
-> ZNC.IP CAP REQ :multi-prefix
-> ZNC.IP CAP REQ :server-time
-> ZNC.IP CAP REQ :userhost-in-names
<- :irc.znc.in CAP m ACK :batch
<- :irc.znc.in CAP m ACK :multi-prefix
<- @time=2019-06-26T08:24:16.225Z :irc.znc.in CAP m ACK :server-time
<- @time=2019-06-26T08:24:16.225Z :irc.znc.in CAP m ACK :userhost-in-names
-> ZNC.IP CAP LIST
-> ZNC.IP CAP END
<- @time=2019-06-26T08:24:16.831Z :irc.znc.in CAP m LIST :batch multi-prefix server-time userhost-in-names
<- @time=2019-06-26T08:24:16.831Z :irc.znc.in 464 m :Password required
<- @time=2019-06-26T08:24:16.831Z :irc.znc.in NOTICE m :*** You need to send your password. Configure your client to send a server password.
<- @time=2019-06-26T08:24:16.831Z :irc.znc.in NOTICE m :*** To connect now, you can use /quote PASS <username>:<password>, or /quote PASS <username>/<network>:<password> to connect to a specific network.
-> ZNC.IP QUIT :


mIRC 7.55.2084 Beta:

Code
-> ZNC.IP CAP LS 302
-> ZNC.IP NICK m
-> ZNC.IP USER m 0 * :...
<- :irc.znc.in CAP unknown-nick LS :batch cap-notify echo-message multi-prefix server-time userhost-in-names znc.in/batch znc.in/self-message znc.in/server-time-iso
-> ZNC.IP CAP REQ :batch
-> ZNC.IP CAP REQ :multi-prefix
-> ZNC.IP CAP REQ :server-time
-> ZNC.IP CAP REQ :userhost-in-names
<- :irc.znc.in CAP m ACK :batch
<- :irc.znc.in CAP m ACK :multi-prefix
<- @time=2019-06-26T08:24:29.547Z :irc.znc.in CAP m ACK :server-time
<- @time=2019-06-26T08:24:29.547Z :irc.znc.in CAP m ACK :userhost-in-names
-> ZNC.IP CAP LIST
-> ZNC.IP CAP END
<- @time=2019-06-26T08:24:30.154Z :irc.znc.in CAP m LIST :batch multi-prefix server-time userhost-in-names
<- @time=2019-06-26T08:24:30.154Z :irc.znc.in 464 m :Password required
<- @time=2019-06-26T08:24:30.154Z :irc.znc.in NOTICE m :*** You need to send your password. Configure your client to send a server password.
<- @time=2019-06-26T08:24:30.154Z :irc.znc.in NOTICE m :*** To connect now, you can use /quote PASS <username>:<password>, or /quote PASS <username>/<network>:<password> to connect to a specific network.
-> ZNC.IP QUIT :

Re: ZNC Time wrong reading from the server? [Re: eahm] #265647 26/06/19 08:42 AM
Joined: Dec 2002
Posts: 4,519
Khaled Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 4,519
Thanks, let me clarify: for both versions of mIRC, I need to see 1) The raw debug log and 2) The status window log.

Also, please type the following command in both versions of mIRC in the status window and post the results: //echo timezone: $timezone daylight: $daylight

Re: ZNC Time wrong reading from the server? [Re: Khaled] #265648 26/06/19 08:50 AM
Joined: May 2018
Posts: 80
eahm Offline OP
Babel fish
OP Offline
Babel fish
Joined: May 2018
Posts: 80
The first post was from today, both logs are from the status and both versions, the second reply was from a moment ago, bot raw log with the znc ip masked, from both versions. Were they enough? Does "/debug on" give you the "raw debug"?

This is //echo timezone: $timezone daylight: $daylight ran on both versions:

mIRC 7.55:

Code
timezone: 25200 daylight: 0


mIRC 7.55.2084 Beta:

Code
timezone: 0 daylight: 0


Thank you.

Re: ZNC Time wrong reading from the server? [Re: eahm] #265649 26/06/19 09:07 AM
Joined: Dec 2002
Posts: 4,519
Khaled Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 4,519
Thanks for the extra details.

What is your Windows timezone setting?

Which version of Windows are you using?

Re: ZNC Time wrong reading from the server? [Re: Khaled] #265650 26/06/19 09:10 AM
Joined: May 2018
Posts: 80
eahm Offline OP
Babel fish
OP Offline
Babel fish
Joined: May 2018
Posts: 80
Windows 10 LTSC 2019
UTC -07:00 Arizona
Time set automatically
Time Zone set automatically

Arizona time never changes also, no DST, not sure it's relevant for this.

Re: ZNC Time wrong reading from the server? [Re: eahm] #265651 26/06/19 10:07 AM
Joined: Dec 2002
Posts: 4,519
Khaled Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 4,519
It looks like the beta is not displaying the correct $timezone value for your system.

Can you please run the following script in the beta and post the results:

Code
test {
  timeapi on | echo timezone: $timezone daylight: $daylight
  timeapi off | echo timezone: $timezone daylight: $daylight
}

Re: ZNC Time wrong reading from the server? [Re: Khaled] #265652 26/06/19 10:15 AM
Joined: May 2018
Posts: 80
eahm Offline OP
Babel fish
OP Offline
Babel fish
Joined: May 2018
Posts: 80
Code
-
* Time API is on
-
timezone: 0 daylight: 0
-
* Time API is off
-
timezone: 25200 daylight: 0

Re: ZNC Time wrong reading from the server? [Re: eahm] #265654 26/06/19 02:53 PM
Joined: Dec 2002
Posts: 4,519
Khaled Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 4,519
Thanks, I think I have found the cause of the issue. This should be fixed in the next version.

Re: ZNC Time wrong reading from the server? [Re: Khaled] #265655 26/06/19 06:04 PM
Joined: May 2018
Posts: 80
eahm Offline OP
Babel fish
OP Offline
Babel fish
Joined: May 2018
Posts: 80
Thank you Khaled.

Re: ZNC Time wrong reading from the server? [Re: eahm] #265663 27/06/19 05:38 PM
Joined: May 2018
Posts: 80
eahm Offline OP
Babel fish
OP Offline
Babel fish
Joined: May 2018
Posts: 80
New beta seems to be working perfectly, I will keep testing.