Runtime module for converting server-rendered dates to the user's local timezone.
Wikidot encodes timestamps and format strings in CSS class names on <span class="odate"> elements:
<span class="odate">
time_{unix_timestamp}
format%{url_encoded_format}
This module scans for these elements and replaces their text content with the formatted date in the user's local timezone.
Supported strftime specifiers: %Y, %y, %m, %d, %e, %H, %M, %S, %a, %A, %b, %B, %j, %O, %%.
%Y
%y
%m
%d
%e
%H
%M
%S
%a
%A
%b
%B
%j
%O
%%
This is a one-shot initialization (no event listeners to clean up).
Runtime module for converting server-rendered dates to the user's local timezone.
Wikidot encodes timestamps and format strings in CSS class names on
<span class="odate">elements:time_{unix_timestamp}-- the Unix timestamp in secondsformat%{url_encoded_format}-- the strftime-compatible format stringThis module scans for these elements and replaces their text content with the formatted date in the user's local timezone.
Supported strftime specifiers:
%Y,%y,%m,%d,%e,%H,%M,%S,%a,%A,%b,%B,%j,%O,%%.This is a one-shot initialization (no event listeners to clean up).