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

Add proper RobTop-like timestamps (configurable) #900

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Stazzical
Copy link
Contributor

meh it probably won't get merged

This PR adds in proper RobTop-like timestamps for messages, friend requests, level uploads, etc.
You can choose to use the old date formatting by going to config/timestamps.php and setting $timestampsMode to 1

On the technical side of stuff, I reworked the unused makeTime function inside incl/lib/mainLib.php which I assumed was made and then abandoned for the purpose of RobTop-like timestamps.
I also made some small styling changes like removing weird new line gaps or deleting commented out debugging code and added in some spaces between characters to make it more readable if you don't mind.

@NightDust12
Copy link

It keeps showing "52 years ago" on every comment on my gdps.

@Stazzical
Copy link
Contributor Author

Are you sure you didn't mess anything up? I tested code identical to this before and it had no issue

Copy link

@MDCYT MDCYT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Work fine
image

@ghost
Copy link

ghost commented Mar 15, 2024

🔥

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

Successfully merging this pull request may close these issues.

3 participants