Skip to content

Commit 6788dd6

Browse files
committed
fix atom entry dates
1 parent 2a10575 commit 6788dd6

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,12 @@ Outputs:
5656
<title>jmoiron.net blog</title>
5757
<link href="http://jmoiron.net/blog"></link>
5858
<id>http://jmoiron.net/blog</id>
59-
<updated>2013-01-16T03:22:24-05:00</updated>
59+
<updated>2013-01-16T03:26:01-05:00</updated>
6060
<summary>discussion about tech, footie, photos</summary>
6161
<entry>
6262
<title>Limiting Concurrency in Go</title>
6363
<link href="http://jmoiron.net/blog/limiting-concurrency-in-go/"></link>
64-
<updated>0001-01-01T00:00:00Z</updated>
64+
<updated>2013-01-16T03:26:01-05:00</updated>
6565
<id>tag:jmoiron.net,2013-01-16:/blog/limiting-concurrency-in-go/</id>
6666
<summary type="html">A discussion on controlled parallelism in golang</summary>
6767
<author>
@@ -72,15 +72,15 @@ Outputs:
7272
<entry>
7373
<title>Logic-less Template Redux</title>
7474
<link href="http://jmoiron.net/blog/logicless-template-redux/"></link>
75-
<updated>0001-01-01T00:00:00Z</updated>
75+
<updated>2013-01-16T03:26:01-05:00</updated>
7676
<id>tag:jmoiron.net,2013-01-16:/blog/logicless-template-redux/</id>
7777
<summary type="html">More thoughts on logicless templates</summary>
7878
<author></author>
7979
</entry>
8080
<entry>
8181
<title>Idiomatic Code Reuse in Go</title>
8282
<link href="http://jmoiron.net/blog/idiomatic-code-reuse-in-go/"></link>
83-
<updated>0001-01-01T00:00:00Z</updated>
83+
<updated>2013-01-16T03:26:01-05:00</updated>
8484
<id>tag:jmoiron.net,2013-01-16:/blog/idiomatic-code-reuse-in-go/</id>
8585
<summary type="html">How to use interfaces &lt;em&gt;effectively&lt;/em&gt;</summary>
8686
<author></author>

atom.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ func newAtomEntry(i *Item) *AtomEntry {
7575
Link: &AtomLink{Href: i.Link.Href, Rel: i.Link.Rel},
7676
Summary: s,
7777
Id: id,
78-
Updated: i.Updated.Format(time.RFC3339),
78+
Updated: anyTimeFormat(time.RFC3339, i.Updated, i.Created),
7979
AuthorName: name,
8080
AuthorEmail: email,
8181
}

0 commit comments

Comments
 (0)