Content deleted Content added
lint |
|||
Line 131:
const minute = addLeadingZero(time.getMinutes());
const finalTime = `${hour}:${minute}${ampm}`;
// Determine the time offset.
Line 138 ⟶ 137:
utcValue >= 0 ? `+${utcValue}` : `−${Math.abs(utcValue.toFixed(1))}`;
▲ returnDate = `${date}, ${finalTime} (UTC${utcOffset})`;
return { returnDate, time };
Line 366 ⟶ 363:
getHour(time) {
let ampm;
let hour = Number.parseInt(time.getHours(), 10);
if (this.LocalComments.twentyFourHours) {
Line 436 ⟶ 433:
const position = value.search(search);
const stringLength = match.toString().length;
const beforeMatch = value.
const afterMatch = value.
const { returnDate, time } = this.adjustTime(
match.toString(),
Line 455 ⟶ 452:
parent = node.parentNode;
const before = document.createElement('span');
Line 467 ⟶ 464:
after.append(document.createTextNode(afterMatch));
parent.insertBefore(after, span.nextSibling);
}
|