fedarovich / qbittorrent-cli

Command line interface for QBittorrent
MIT License
291 stars 16 forks source link

Logging timestamps are all 1970 (Unix epoch year) but some time in January #78

Closed rbutoi closed 7 months ago

rbutoi commented 1 year ago
❯ qbt server log --url http://127.0.0.1:9002 | cut -c-37 | head
[ Normal ] 000000 1970-01-20 08:53:05
[ Normal ] 000001 1970-01-20 08:53:05
[ Normal ] 000002 1970-01-20 08:53:05
[  Info  ] 000003 1970-01-20 08:53:05
[  Info  ] 000004 1970-01-20 08:53:05
[  Info  ] 000005 1970-01-20 08:53:05
[  Info  ] 000006 1970-01-20 08:53:05
[  Info  ] 000007 1970-01-20 08:53:05
[  Info  ] 000008 1970-01-20 08:53:05
[  Info  ] 000009 1970-01-20 08:53:05
...etc all the same timestamp...

Not sure if this is a qbt issue or upstream, but starting here.

Jarsky commented 1 year ago

Just adding on to @rbutoi to say same here

$ qbt server log | awk '{print $1, $2, $3, $4, $5, $6}' | tail -n 10
[ Normal ] 001303 1970-01-20 09:01:03
[ Normal ] 001304 1970-01-20 09:01:03
[ Normal ] 001305 1970-01-20 09:01:03
[ Normal ] 001306 1970-01-20 09:01:03
[ Normal ] 001307 1970-01-20 09:01:03
[ Normal ] 001308 1970-01-20 09:01:03
[ Warn ] 001309 1970-01-20 09:01:11
[ Normal ] 001310 1970-01-20 09:01:17
[ Normal ] 001311 1970-01-20 09:01:28
[ Normal ] 001312 1970-01-20 09:01:28

The qBittorrent logs are ok:

$ cat qbittorrent.log | awk '{print $1, $2}' | tail -n 10
(N) 2023-01-19T13:43:12
(N) 2023-01-19T13:43:12
(N) 2023-01-19T13:43:12
(N) 2023-01-19T13:43:12
(N) 2023-01-19T18:11:11
(N) 2023-01-19T18:11:12
(N) 2023-01-19T18:12:24
(N) 2023-01-19T18:12:24
(N) 2023-01-19T18:12:58
(N) 2023-01-19T18:12:58
cybersholt commented 10 months ago

Still an issue with: qBittorrent v4.5.4 qbt --version 1.7.23016.1

[ Normal ] 000000 1970-01-20 14:38:21 qBittorrent v4.5.4 started [ Info ] 000004 1970-01-20 15:03:01 HTTP User-Agent: "qBittorrent/4.5.4"