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 Option to show Absolute dates, not Relative dates, in playlists and main Details #2352

Open
MisterTickle opened this issue Jun 9, 2024 · 4 comments
Labels
Feature request Wish or idea good first issue A GitHub standard for inviting (new) contributors *Congratulations in advance!* help wanted Just an old github standard we add automatically. (The team can remove it when working on it.) up-for-grabs (a github standard for inviting new contributors) - Welcome! ♥

Comments

@MisterTickle
Copy link

MisterTickle commented Jun 9, 2024

PROBLEM:
I hate seeing vague, "friendly" relative dates in my playlists. Example when I've sorted a playlist by published date, it's still horrible.
This is shown in the information for each video.
Title of Video 1 - Channel - Views - Uploaded 1 week ago
Title of Video 2 - Channel - Views - Uploaded 4 days ago
Title of Video 3 - Channel - Views - Uploaded 4 days ago
Title of Video 4 - Channel - Views - Uploaded 2 hours ago
Title of Video 5 - Channel - Views - Uploaded 2 hours ago

Were those two "4 days ago" videos uploaded 1 minute apart, or 23minutes and 59 seconds apart? There's no way to tell. I hate this!

It is also shown in the "how long ago" a video was uploaded in the MAIN display panel in the DETAILS for each ago. There is an option to show the date, and the day of the week - but I want to see the EXACT date and time. Is this possible please?

SOLUTION:
I would like to see the EXACT dates AND times displayed, like this, with the full date including the day, and the month names, and the "st", "nd", "rd", "th":
Title of Video 1 - Channel - Views - Uploaded Sun 2nd Jun 2024 13:45
Title of Video 2 - Channel - Views - Uploaded Wed 5th Jun 2024 08:35
Title of Video 3 - Channel - Views - Uploaded Wed 5th Jun 2024 20:14
Title of Video 4 - Channel - Views - Uploaded Sun 9th Jun 2024 08:45
Title of Video 5 - Channel - Views - Uploaded Sun 9th Jun 2024 08:55

And in the main display details:

328,494 views Thurs 6 Jun 2024 16:45
^^^ add Day and Time. (Sometimes the Day disappears, perhaps this is a bug. If I toggle "hide views count" a few times, then the Day comes back.)

SHORT Table (Summary)
Problem Dislike Relative Dates and Times
Solution Option to show Absolute Dates and Times
Alternatives
Scope
Side effects
Context
@MisterTickle MisterTickle added Feature request Wish or idea good first issue A GitHub standard for inviting (new) contributors *Congratulations in advance!* help wanted Just an old github standard we add automatically. (The team can remove it when working on it.) up-for-grabs (a github standard for inviting new contributors) - Welcome! ♥ labels Jun 9, 2024
@clicky6
Copy link

clicky6 commented Jun 22, 2024

@MisterTickle
Copy link
Author

Thankyou, @clicky6 . That does changes dates to YYYY-MM-DD format. (Any format without month names is not a nice format, I always want to see month NAMES personally, so that there's 0% doubt which number is the date vs which number is the month. Remove all doubt, always use month names!)

But it doesn't display HH:MM times, so isn't what I want and does not do the job properly.

In the examples I've given and listed above for videos all updated on the same date, this script is a bit worse than before :(.

But thankyou for the suggestion and for the pointer, I may be able to modify that script for my own use.

@clicky6
Copy link

clicky6 commented Jun 22, 2024

Thankyou, @clicky6 . That does changes dates to YYYY-MM-DD format. (Any format without month names is not a nice format, I always want to see month NAMES personally, so that there's 0% doubt which number is the date vs which number is the month. Remove all doubt, always use month names!)

But it doesn't display HH:MM times, so isn't what I want and does not do the job properly.

In the examples I've given and listed above for videos all updated on the same date, this script is a bit worse than before :(.

The script can be modified to suit those like having month names & hh:mm time etc

Modified the isoToDate function with the help of AI to implement date format modification, then changed it to Tampermonkey format. You can customize the date format by modifying this function to suit your preferences.

@MisterTickle
Copy link
Author

Thankyou @clicky6 ! I did manage to modify it while you were replying :)

I changed lines 123/4 to
let options = { year: 'numeric', month: 'short', day: '2-digit', hour: '2-digit', minute: '2-digit', second: '2-digit', separator: '-' };
let lang = 'en-GB';

Very happy with the results! Thanks again

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature request Wish or idea good first issue A GitHub standard for inviting (new) contributors *Congratulations in advance!* help wanted Just an old github standard we add automatically. (The team can remove it when working on it.) up-for-grabs (a github standard for inviting new contributors) - Welcome! ♥
Projects
None yet
Development

No branches or pull requests

2 participants