1

The date and time when the article was published is shown below the article title.

How do I show Swatch Internet Time there instead of local time?

1 Answer 1

2

You can use 'B' as the format for the_date() and/or the_time() to generate Swatch Internet Time format.

If you're modifying a theme, just find the references to the_date() and/or the_time() in the template files and change the value of the format parameter.

If you're creating a plugin, you can hook into the get_the_date and/or get_the_time filters.

2
  • 1
    You need to put this in Settings > General > Time Format.
    – jobukkit
    Commented Jul 30, 2014 at 17:39
  • Also, set the time zone to UTC or it won't work!
    – jobukkit
    Commented Jul 30, 2014 at 17:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.