about summary refs log tree commit homepage
path: root/lib/PublicInbox
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2021-10-22 00:49:35 -0400
committerEric Wong <e@80x24.org>2021-10-22 05:28:14 +0000
commit45f87867107724371d80a563099ab93eda1d919b (patch)
tree0eeff2e2444dd9fea9fb70b788c5bd02c5124385 /lib/PublicInbox
parent4cd7a78f3b8c03670e2d77675229472506eee1eb (diff)
downloadpublic-inbox-master.tar.gz
When the gmtime() calls were moved from feed_entry() and atom_header()
into feed_updated() in c447bbbd, @_ rather than a scalar was passed to
gmtime().  As a result, feed <updated> values end up as
"1970-01-01T00:00:00Z".

Switch back to using a scalar argument to restore the correct
timestamps.

Fixes: c447bbbddb4ac8e1 ("wwwatomstream: simplify feed_update callers")
Diffstat (limited to 'lib/PublicInbox')
-rw-r--r--lib/PublicInbox/WwwAtomStream.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/PublicInbox/WwwAtomStream.pm b/lib/PublicInbox/WwwAtomStream.pm
index f60251b7..5d32294e 100644
--- a/lib/PublicInbox/WwwAtomStream.pm
+++ b/lib/PublicInbox/WwwAtomStream.pm
@@ -161,7 +161,8 @@ sub feed_entry {
 }
 
 sub feed_updated {
-        '<updated>' . strftime('%Y-%m-%dT%H:%M:%SZ', gmtime(@_)) . '</updated>';
+        my ($t) = @_;
+        '<updated>' . strftime('%Y-%m-%dT%H:%M:%SZ', gmtime($t)) . '</updated>';
 }
 
 1;