WelcomeUser Guide
ToSPrivacyCanary
DonateBugsLicense

©2024 Poal.co

1.2K

Unless I'm overlooking something, relative time stamps are used to show time and date of posts. Example: "8mo ago (edited 8mo ago)"

Is there a way to switch to absolute time stamps? Not only is '8 months ago' not very precise, when saving screen shots or printing as PDF, it doesn't retain usable time and date information.

I wish I had an option to display a real time stamp, to preserve it for when I'm saving stuff locally and then look at it months later. Filesystem time stamps can be messed up over the years, especially in backup/restore operations.

Usually, when documenting ongoing happenings like the Ukraine thing, I precede the file name with a time stamp yyyy-mm-dd-hh-mm_my_file.ext. Would still be helpful to have a real ref in the file itself, even just in case of fat finger typo syndrome. :)

Would that be hard to implement? Is it already possible and I haven't found out how?

Unless I'm overlooking something, relative time stamps are used to show time and date of posts. Example: "8mo ago (edited 8mo ago)" Is there a way to switch to absolute time stamps? Not only is '8 months ago' not very precise, when saving screen shots or printing as PDF, it doesn't retain usable time and date information. I wish I had an option to display a real time stamp, to preserve it for when I'm saving stuff locally and then look at it months later. Filesystem time stamps can be messed up over the years, especially in backup/restore operations. Usually, when documenting ongoing happenings like the Ukraine thing, I precede the file name with a time stamp yyyy-mm-dd-hh-mm_my_file.ext. Would still be helpful to have a real ref in the file itself, even just in case of fat finger typo syndrome. :) Would that be hard to implement? Is it already possible and I haven't found out how?

(post is archived)

[–] [Sticky] 3 pts

Here's the working tampermonkey script (copy the entire green part and paste it in tampermonkey (browser extension)

// ==UserScript== // [@name](/u/name) relative dates // [@namespace](/u/namespace) http://tampermonkey.net/ // [@version](/u/version) 0.1 // [@description](/u/description) convert abs to rel dates // [@author](/u/author) AOU // [@match](/u/match) https://poal.co/* // [@grant](/u/grant) none // ==/UserScript== (function updateTimestamps() { 'use strict'; var myTimes = document.getElementsByClassName('mytime'); for(var i=0; i<myTimes.length; i++) { var time = myTimes[i]; var datetimeStringOld = time.getAttribute('datetime'); var dateSeconds = Date.parse(datetimeStringOld); var date = new Date(dateSeconds); var localString = date.toLocaleString(); time.innerHTML = localString; } var timerVar = setInterval( function(){ updateTimestamps() }, 5000); })();

[–] 0 pt

Just saw this now, was AFK for a bit. And holy shit, it works like the proverbial charm.

https://pic8.co/sh/u81mgN.png

That's really cool. Thank you for the time!

[–] 1 pt

You can see the real date/time (UTC dynamically converted to your browser's timezone)

I have no plan to change that as it will most likely brake the UI (especially on mobile)

[–] 1 pt

What if you made it configurable so the mouseover showed the relative time, and the page showed the real time if you specified it to do so? Basically they would just swap if you checked that radio in your settings.

[–] 1 pt (edited )

it will most likely brake the UI (especially on mobile)

You can make your own tampermonkey script instead.

[–] 0 pt

I saw that, but care to elaborate? I don't do front-end.

[–] 0 pt

Thanks, but where is this mystical UTC time? I must be overlooking something obvious?

https://pic8.co/sh/muBerU.png

[–] 1 pt

Mouse over for 2 seconds (doesn't work on mobile) on the datetime of posts/comments.

[–] 0 pt

Got it. Dankeschön.