diff --git a/rfc8416.php b/rfc8416.php index 03b8ddf..5ac47c7 100755 --- a/rfc8416.php +++ b/rfc8416.php @@ -213,21 +213,6 @@ foreach ($raw_array as $sub_array) } } -/* - * Function: Add metadata - * - * Add info - * 1. generation time (now), - * 2. expire time (now + 3 days), - * 3. number of routes - * - * Numbers must be unquoted integers, and timeformat must - * be epoch format. TImezone is set to Etc/UTC. - */ -//$roas["metadata"]["counts"] = (int)count($roas["locallyAddedAssertions"]["prefixAssertions"]); -//$roas["metadata"]["generated"] = (int)(date_format(new \DateTime("now",new \DateTimeZone("UTC")),"U")); -//$roas["metadata"]["valid"] = (int)(date_format(date_modify(new \DateTime("now",new \DateTimeZone("UTC")),"+3day"),"U")); - writeRoutinatorExceptionFile($roas); ?> diff --git a/roagen.php b/roagen.php index 282dcab..74df7f5 100755 --- a/roagen.php +++ b/roagen.php @@ -224,7 +224,7 @@ foreach ($raw_array as $sub_array) */ $roas["metadata"]["counts"] = (int)count($roas["roas"]); $roas["metadata"]["generated"] = (int)(date_format(new \DateTime("now",new \DateTimeZone("UTC")),"U")); -$roas["metadata"]["valid"] = (int)(date_format(date_modify(new \DateTime("now",new \DateTimeZone("UTC")),"+3day"),"U")); +$roas["metadata"]["valid"] = (int)(date_format(date_modify(new \DateTime("now",new \DateTimeZone("UTC")),"+5day"),"U")); writeExportJSON($roas); writeBirdConfig($roas);