MyBB Community Forums
relative time vs. absolute time - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: 1.8 Support (https://community.mybb.com/forum-175.html)
+--- Forum: General Support (https://community.mybb.com/forum-176.html)
+--- Thread: relative time vs. absolute time (/thread-207205.html)



relative time vs. absolute time - HLFadmin - 2017-01-07

Is there a setting that selects relative time format or absolute time format?
Whether adminCP or userCP?

Or is it baked in for relative within 24 hours and absolute after that?

Needs a plugin?


RE: relative time vs. absolute time - Eldenroot - 2017-02-12

There is a plugin for that
http://doylecc.altervista.org/en/time.html


RE: relative time vs. absolute time - HLFadmin - 2017-02-12

Downloaded, installed and working perfectly.
Thank you.


RE: relative time vs. absolute time - rfssjz - 2018-07-19

If you decide to do a simple switch without a plugin (recommended), then search for this line in ~/inc/functions.php:
function my_date($format, $stamp=0, $offset="", $ty=1, $adodb=false)
...and change it to this:
function my_date($format, $stamp=0, $offset="", $ty=2, $adodb=false)
As you can tell, $ty=1 was switched to $ty=2, hence forcing the absolute time function without a plugin.