Show time that was generated

This commit is contained in:
nytpu
2021-03-22 08:20:21 -06:00
parent 413c63149f
commit d3d181e8fa
+1
View File
@@ -135,6 +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"))
if len(pe.Entries) > 0 { if len(pe.Entries) > 0 {
curDay := toLocalDay(pe.Entries[0].Published) curDay := toLocalDay(pe.Entries[0].Published)