wdpr
    Preparing search index...

    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 seconds
    • format%{url_encoded_format} -- the strftime-compatible format string

    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, %%.

    This is a one-shot initialization (no event listeners to clean up).

    Functions

    initOdate