Merge branch 'roa'

* roa:
  roagen.php: change output datetime format from DATE_W3C to c
This commit is contained in:
netravnen 2020-01-10 14:28:19 +00:00
commit 0c9dcc2466

View file

@ -236,8 +236,8 @@ $roas["metadata"]["signatureData"] = "";
*/
// Additional human readbable DateTime format, example: 2013-04-12T15:52:01+00:00
$roas["metadata"]["human"]["generated"] = date_format(new \DateTime("now", new \DateTimeZone("UTC")), "DATE_W3C");
$roas["metadata"]["human"]["valid"] = date_format(date_modify(new \DateTime("now", new \DateTimeZone("UTC")), "+3 day"), "DATE_W3C");
$roas["metadata"]["human"]["generated"] = date_format(new \DateTime("now", new \DateTimeZone("UTC")), "c");
$roas["metadata"]["human"]["valid"] = date_format(date_modify(new \DateTime("now", new \DateTimeZone("UTC")), "+3 day"), "c");
writeExportJSON($roas);
writeBirdConfig($roas);