Show tested as date only on public page

This commit is contained in:
Skylar Ittner 2020-08-21 12:44:48 -06:00
parent f665fd3078
commit 684f33b9e5
2 changed files with 2 additions and 1 deletions

View File

@ -335,7 +335,7 @@ if (isset($_GET["backgroundcolor"]) && !empty($_GET["backgroundcolor"]) && preg_
if (!empty($c->getTestedDate())) {
?>
<b><?php $Strings->get("Tested On"); ?></b>: <?php echo date($SETTINGS["datetime_format"], strtotime($c->getTestedDate())); ?><br />
<b><?php $Strings->get("Tested On"); ?></b>: <?php echo date($SETTINGS["date_format"], strtotime($c->getTestedDate())); ?><br />
<?php
}

View File

@ -81,6 +81,7 @@ $SETTINGS = [
// For supported values, see http://php.net/manual/en/timezones.php
"timezone" => "America/Denver",
"datetime_format" => "M j Y g:ia",
"date_format" => "M j Y",
// Language to use for localization. See langs folder to add a language.
"language" => "en",
// Shown in the footer of all the pages.