Kami
Forum Cat
Posts: 40,201
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,201
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Jan 31, 2022 15:36:57 GMT -8
Chris Sorry, I must have missed the updated commentary on that going defunct ;_; my apologies. Thank you for the info! No, that was my mistake, not yours
<3
A bit of a snag on timestamps.
Right now I have this set to read:
$.formatTime((proboards.data('military_time') ? 'HHmm' : 'HHmm'), raw_date) + ' hours')
in order to force military time (0100 hours, 1300 hours) regardless of user settings. this works fine on the "today" timestamps; however if the post is not from today*, then it shows the default 12 hour clock as per my settings.
* I have no posts from yesterday and thus cannot tell if this impacts yesterday posts or not.
visuals here - kamitest3.proboards.com/
|
|
inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,018
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Jan 31, 2022 16:04:35 GMT -8
The line preceding the line you posted makes it conditional on working only on dates that do not include the word "at". If you remove the condition //if(time.text().indexOf(" at ")== -1) then it should affect all dates, not just dates that do not include the "at". quick tip: you can run the code in the console against any forum (such as this support forum where you have enough dates to cover the spectrum)
|
|
Kami
Forum Cat
Posts: 40,201
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,201
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Jan 31, 2022 16:22:47 GMT -8
The line preceding the line you posted makes it conditional on working only on dates that do not include the word "at". If you remove the condition //if(time.text().indexOf(" at ")== -1) then it should affect all dates, not just dates that do not include the "at". quick tip:you can run the code in the console against any forum (such as this support forum where you have enough dates to cover the spectrum)
Perfect, thanks for the assist!
|
|