add time zone to feed.gmi
This commit is contained in:
+1
-1
@@ -135,7 +135,7 @@ func (d *FullData) WriteFeed(dataPath string) error {
|
|||||||
pe := d.getPageEntries()
|
pe := d.getPageEntries()
|
||||||
rawPage += fmt.Sprintf("\n=> subscriptions.gmi Currently aggregating %d capsules, gopherholes, and websites.\n\n", len(d.Feeds)+len(d.Pages))
|
rawPage += fmt.Sprintf("\n=> subscriptions.gmi Currently aggregating %d capsules, gopherholes, and websites.\n\n", len(d.Feeds)+len(d.Pages))
|
||||||
d.RUnlock()
|
d.RUnlock()
|
||||||
rawPage += fmt.Sprintf("Generated on %s\n", time.Now().Format("2006-01-02 at 15:04"))
|
rawPage += fmt.Sprintf("Generated on %s\n", time.Now().Format("2006-01-02 at 15:04 MST"))
|
||||||
|
|
||||||
if len(pe.Entries) > 0 {
|
if len(pe.Entries) > 0 {
|
||||||
curDay := toLocalDay(pe.Entries[0].Published)
|
curDay := toLocalDay(pe.Entries[0].Published)
|
||||||
|
|||||||
Reference in New Issue
Block a user