Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

time syncing to browser local time for punishments #986

Open
NoctisAU opened this issue Aug 19, 2024 · 7 comments
Open

time syncing to browser local time for punishments #986

NoctisAU opened this issue Aug 19, 2024 · 7 comments

Comments

@NoctisAU
Copy link

Is your feature request related to a problem? Please describe.

Some people find it hard to discern when exactly something happened. Makes it a challenge looking into old punishments when they have demos

Describe the solution you'd like

State the time zone used in the Sourcebans next to the time a punishment was issued.

it would be good if the time can be synced to browser local time. So members from each timezone can know when it was exactly added/punished for

Describe alternatives you've considered

No idea

Additional context

@DNA-styx
Copy link

DNA-styx commented Sep 3, 2024

Could a quick win be to show the admins what the current time is on the web server? Can be added to a theme file, something like the below images using the code Web server time: {$smarty.now|date_format:'%d-%b %H:%M'}. Perhaps add it to the title/footer.tpl so it appears on all pages.
image
image

@Trice1984
Copy link

This feature is great, now i know, my mysql time ist correct, the time at Homepage is correct, but Sourceban, show a diffrent Time, but Why???? :-/

@DNA-styx
Copy link

DNA-styx commented Dec 29, 2024

Is it hours or minutes out? If hours, it could be a timezone issue that (my code means) smarty isn't handling displayingcorrectly.

@Trice1984
Copy link

hmm hour, i installed it new or what can u say?

@DNA-styx
Copy link

DNA-styx commented Dec 29, 2024

Edit page_admin.tpl line 110 to read:

        Web server time: {$smarty.now|date_format:'%d-%b %H:%M %Z'}

And see what it says on screen.

@Trice1984
Copy link

Trice1984 commented Dec 29, 2024

This:Software Versions

Latest SB++ release: Please Wait...
Latest Dev Git: Please Wait...
Please Wait...
Smarty: v5.4.1
Mootools: v1.2dev

and this:

Total Servers: 6
Total Admins: 32
Total Demo Size: 11.28 MB
Web server time: 30-Dec 05:26

and a ajax called error:
Error: the XML response that was returned from the server is invalid. Received:
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo for sbpp.github.io failed: Temporary failure in name resolution in /www/wwwroot/sb.xloldies.de/includes/sb-callback.php on line 2606

Realtime 22:28

@Trice1984
Copy link

Trice1984 commented Dec 29, 2024

Server restart now ok :/ but the time, OK, it was an php.ini settings problem. But why the versions are diffrent?

Panel say:
Latest SB++ release: 1.8.0
Latest Dev Git: 1320
You have the Latest Release.
You have the Latest Dev Version.
Smarty: v5.4.1
Mootools: v1.2dev

an footer say 1420...

SourceBans++ 1.8.0 | Git: 1420 Powered by SourceMod

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants