MediaWiki:DateTimezones.js: Revision history

From TwogPedia

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

15 October 2023

9 October 2023

  • curprev 18:0918:09, 9 October 2023Couchor talk contribs 1,403 bytes +1,403 Created page with "$(document).ready(function(){ // Function to convert UTC time to visitor's timezone function convertUTCtoVisitorTime(utcTime) { const userTimezone = Intl.DateTimeFormat().resolvedOptions().timeZone; const utcDate = new Date(utcTime + " UTC"); // Ensure 'utcTime' includes 'UTC' to avoid browser timezone offset const visitorDate = utcDate.toLocaleString('en-GB', { timeZone: userTimezone, day: 'numeric', month: 'short', year: 'numeric' }).replace(/(\w{3}) (\d{..."