Hi,
I'd like to Shorten Timestamps globally so that times go from long to short such as:
Less than 1 Minute ago -----> 1m ago
Less than 24 Minutes ago -----> 24m ago
2 Hours ago -----> 2h ago
24 Days ago -----> 24d ago
Globally, how can I do this?
you can change them in global.lang.php file
eg. $l['days'] = "Days";
may be changed to
$l['days'] = "d";
however it might be confusing for users
eg. m = minutes or months ?
(2019-03-21, 07:38 AM).m. Wrote: [ -> ]you can change them in global.lang.php file
eg. $l['days'] = "Days";
may be changed to
$l['days'] = "d";
however it might be confusing for users
eg. m = minutes or months ?
@OP: .m. is right, however what you can do is add an title attribute to the date. That can give complete detail and remove confusion.
<span class="date_display" title="d/Date, h/hours, m/minutes"> Date variable</span>
You can further improve this by declaring new variables in global.lang.php like
$l['days'] = "d";
$l['days_full'] = "Days";
And then assigning values in inc/functions_time.php
And then use the new variable in title