>>9110
Having the
Local Times option enabled in the settings, the dates of some posts are displayed as NaN/NaN/NaN (undefined) NaN:NaN:NaN in Spanish boards like
>>>/hisparefugio/ .
I think modifying setLocalTime() in posting.js in this way should solve it provisionally.:
posting.setLocalTime = function (time) {
var parsedDate = new Date(time .innerText + ' UTC') ;
if (isNaN(parsedDate ) ) {
parsedDate = new Date(time .innerText .replace (/ ^(\d \d ) \/(\d\d)(.+)/g, "$2/$1$3" ) + ' UTC');
}
time.innerText = api.formatDateToDisplay(parsedDate , true ) ;
};
But I think it doesn't work very well with some dates.
As already reported in
>>9244 and
>>>/hisparefugio/155421 the "Relative Times" option doesn't work either.
In the meantime the local times can be fixed by disabling the homonymous option, pasting the above code in Settings > JS (changing posting.setLocalTime to setLocalTime to make it work) and add this below to run the function every time that the page loads:
var createdTimes = document .querySelectorAll (".labelCreated" );
for (var i = 0 ; i<createdTimes.length; i++) {
Message too long. Click
here
to view full text.