]> Sergey Matveev's repositories - public-inbox.git/commit
wwwatomstream: call gmtime with scalar
authorKyle Meyer <kyle@kyleam.com>
Fri, 22 Oct 2021 04:49:35 +0000 (00:49 -0400)
committerEric Wong <e@80x24.org>
Fri, 22 Oct 2021 05:28:14 +0000 (05:28 +0000)
commit45f87867107724371d80a563099ab93eda1d919b
tree0eeff2e2444dd9fea9fb70b788c5bd02c5124385
parent4cd7a78f3b8c03670e2d77675229472506eee1eb
wwwatomstream: call gmtime with scalar

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")
lib/PublicInbox/WwwAtomStream.pm
t/psgi_v2.t