commit 68fa28edb911dfc70d3d2a478029109eea3c9eb4
parent 8bbb46ddda8a8c62bac4bdf1f1b063a288046daa
Author: markseu <mark2011@mayberg.se>
Date: Thu, 26 Oct 2023 20:23:55 +0200
Updated API, refactoring
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/system/extensions/core.php b/system/extensions/core.php
@@ -874,7 +874,7 @@ class YellowLanguage {
return $output;
}
- // Return timestamp as date, relative to today
+ // Return Unix time as date, relative to today
public function getDateRelative($timestamp, $format, $daysLimit, $language = "") {
$timeDifference = time() - $timestamp;
$days = abs(intval($timeDifference/86400));
@@ -906,7 +906,7 @@ class YellowLanguage {
return $output;
}
- // Return timestamp as date
+ // Return Unix time as date
public function getDateFormatted($timestamp, $format, $language = "") {
$dateMonthsNominative = preg_split("/\s*,\s*/", $this->getText("coreDateMonthsNominative", $language));
$dateMonthsGenitive = preg_split("/\s*,\s*/", $this->getText("coreDateMonthsGenitive", $language));