googelreader: set CrawlTimeMsec at the correct precision
Fixes #2669 Fixes #2670
This commit is contained in:
parent
48ddc02ba8
commit
5ce3f24838
1 changed files with 3 additions and 3 deletions
|
@ -1021,10 +1021,10 @@ func (h *handler) streamItemContentsHandler(w http.ResponseWriter, r *http.Reque
|
||||||
ID: fmt.Sprintf(EntryIDLong, entry.ID),
|
ID: fmt.Sprintf(EntryIDLong, entry.ID),
|
||||||
Title: entry.Title,
|
Title: entry.Title,
|
||||||
Author: entry.Author,
|
Author: entry.Author,
|
||||||
TimestampUsec: fmt.Sprintf("%d", entry.Date.UnixNano()/(int64(time.Microsecond)/int64(time.Nanosecond))),
|
TimestampUsec: fmt.Sprintf("%d", entry.Date.UnixMicro()),
|
||||||
CrawlTimeMsec: fmt.Sprintf("%d", entry.Date.UnixNano()/(int64(time.Microsecond)/int64(time.Nanosecond))),
|
CrawlTimeMsec: fmt.Sprintf("%d", entry.CreatedAt.UnixMilli()),
|
||||||
Published: entry.Date.Unix(),
|
Published: entry.Date.Unix(),
|
||||||
Updated: entry.Date.Unix(),
|
Updated: entry.ChangedAt.Unix(),
|
||||||
Categories: categories,
|
Categories: categories,
|
||||||
Canonical: []contentHREF{
|
Canonical: []contentHREF{
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue