TeamSpeak-Systems / ts-services

TeamSpeak 5 service collection for docker compose deployments
73 stars 5 forks source link

Wrong Date format in Build Number #14

Closed BerndSchmecka closed 1 year ago

BerndSchmecka commented 1 year ago

Describe the bug

Hi,

the newest version (beta58rc18 / v5.0.0-beta14-rc11) has a wrong date format in the build number (v5.0.0-beta14-rc11 [Build: b'1674816245'] instead of v5.0.0-beta14-rc11 [Build: 1674816245]), which causes TS3 and server lists like ts3index to not correctly parse the build date.

Kind regards

Used versions/hash

ts-services beta58rc18 / teamspeak_server v5.0.0-beta14-rc11

qknight commented 1 year ago

Where do you see the build number? In the ts5client or in the teamspeak_server log?

BerndSchmecka commented 1 year ago

Both in TS3 Client with Extended Client Info Theme and in SSH Query.

qknight commented 1 year ago

I've just commited this change:

-    build_number=check_output(['git', '-C', repo_path, 'show', '-s', '--format=%ct'], stderr=STDOUT).strip()
+    build_number=check_output(['git', '-C', repo_path, 'show', '-s', '--format=%ct'], stderr=STDOUT).strip().decode()

Expect this in the next rc or beta release to be fixed. If not, please reopen.

qknight commented 1 year ago

Could have used:

build_number=check_output(['git', '-C', repo_path, 'show', '-s', '--format=%ct'], stderr=STDOUT, text=True).strip()

Not sure which is the better solution but noting this done in case it comes up again.

BerndSchmecka commented 1 year ago

Hi,

Just to confirm, this has indeed been fixed and now works as intended. For example TS3 now correctly parses the build number as v5.0.0-beta14-rc16 (16.03.2023 15:00:27) 🥳