55°F

Aaron Parecki

  • Articles
  • Notes
  • Photos
  • Day 43: Timezone Support for IndieNews #100DaysOfIndieWeb

    February 1, 2017

    Today I added support to IndieNews for storing and displaying the timezone of submitted posts. Previously, all the dates were stored and displayed as UTC, which can be misleading such as when a post is submitted after 5pm in Pacific time since the post then has the date of the following day in UTC.

    When you submit a post to IndieNews, you just have to make sure you include a timezone offset in your dt-published property. If you format your published property with a full ISO8601 date such as "2017-02-01T08:40:00-0800" then it is already included.

    As with all my projects, IndieNews internally stores the date as UTC, and stores the offset separately. This allows normal date sorting using the one value, and when I go to display the date, I include the offset which adjusts the date appropriately.

    Portland, Oregon
    Wed, Feb 1, 2017 8:41am -08:00 #100daysofindieweb #indienews #timezone
    2 mentions

    Other Mentions

    • Aaron Parecki aaronparecki.com
      My 2017 Year in Review
      Thu, Jan 4, 2018 2:40pm -08:00
    • 100 Days of IndieWeb aaronparecki.com/tag/100daysofindieweb
      Day 43: Timezone Support for IndieNews #100DaysOfIndieWeb: aaronparecki.com/2017/02/01/4/d…

      Wed, Feb 1, 2017 4:44pm +00:00 (via brid-gy.appspot.com)
Posted in /articles using quill.p3k.io

Hi, I'm Aaron Parecki, Director of Identity Standards at Okta, and co-founder of IndieWebCamp. I maintain oauth.net, write and consult about OAuth, and participate in the OAuth Working Group at the IETF. I also help people learn about video production and livestreaming. (detailed bio)

I've been tracking my location since 2008 and I wrote 100 songs in 100 days. I've spoken at conferences around the world about owning your data, OAuth, quantified self, and explained why R is a vowel. Read more.

  • Director of Identity Standards at Okta
  • IndieWebCamp Founder
  • OAuth WG Editor
  • OpenID Board Member

  • 🎥 YouTube Tutorials and Reviews
  • 🏠 We're building a triplex!
  • ⭐️ Life Stack
  • ⚙️ Home Automation
  • All
  • Articles
  • Bookmarks
  • Notes
  • Photos
  • Replies
  • Reviews
  • Trips
  • Videos
  • Contact
© 1999-2025 by Aaron Parecki. Powered by p3k. This site supports Webmention.
Except where otherwise noted, text content on this site is licensed under a Creative Commons Attribution 3.0 License.
IndieWebCamp Microformats Webmention W3C HTML5 Creative Commons
WeChat ID
aaronpk_tv