Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save matthewd/751287 to your computer and use it in GitHub Desktop.

Select an option

Save matthewd/751287 to your computer and use it in GitHub Desktop.
From e925fe3d38d907d57c46e53809d0252929b3b9fd Mon Sep 17 00:00:00 2001
From: Matthew Draper <[email protected]>
Date: Wed, 22 Dec 2010 20:04:35 +1030
Subject: [PATCH 1/3] Use UTC in XML timestamps, to avoid duelling regenerations.
---
web/_site/feed/atom.xml | 4 ++--
web/feed/atom.xml | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/web/_site/feed/atom.xml b/web/_site/feed/atom.xml
index b47d886..90d9973 100644
--- a/web/_site/feed/atom.xml
+++ b/web/_site/feed/atom.xml
@@ -5,7 +5,7 @@
<link href="http://rubini.us/atom.xml" rel="self"/>
<link href="http://rubini.us/"/>
- <updated>2010-12-15T00:00:00-08:00</updated>
+ <updated>2010-12-15T00:00:00+00:00</updated>
<id>http://rubini.us/</id>
@@ -14,7 +14,7 @@
<author><name>Brian Ford</name></author>
<title>Rubinius Has a Blog!</title>
<link href="http://rubini.us/2010/12/15/rubinius-has-a-blog/"/>
- <updated>2010-12-15T00:00:00-08:00</updated>
+ <updated>2010-12-15T00:00:00+00:00</updated>
<id>http://rubini.us/2010/12/15/rubinius-has-a-blog</id>
<content type="html">&lt;p&gt;Many thought the day would never come, but Rubinius finally has a blog. That&amp;rsquo;s
not all, though: We have integrated the website, blog, and documentation using
diff --git a/web/feed/atom.xml b/web/feed/atom.xml
index b4fac57..482a551 100644
--- a/web/feed/atom.xml
+++ b/web/feed/atom.xml
@@ -8,7 +8,7 @@ layout: nil
<link href="http://rubini.us/atom.xml" rel="self"/>
<link href="http://rubini.us/"/>
{% for post in site.posts limit:1 %}
- <updated>{{ post.date | date_to_xmlschema }}</updated>
+ <updated>{{ post.date | date: '%Y-%m-%dT00:00:00+00:00' }}</updated>
{% endfor %}
<id>http://rubini.us/</id>
@@ -17,7 +17,7 @@ layout: nil
<author><name>{{ post.author }}</name></author>
<title>{{ post.title }}</title>
<link href="http://rubini.us{{ post.url }}"/>
- <updated>{{ post.date | date_to_xmlschema }}</updated>
+ <updated>{{ post.date | date: '%Y-%m-%dT00:00:00+00:00' }}</updated>
<id>http://rubini.us{{ post.id }}</id>
<content type="html">{{ post.content | xml_escape }}</content>
</entry>
--
1.7.2.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment