summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2026-02-23 12:41:40 -0500
committerFreya Murphy <freya@freyacat.org>2026-02-23 12:41:40 -0500
commitc35bb440ffb9cd28048e3d9a2c0ee272cb14f6e9 (patch)
tree2022dc7215405ea04993a85f8edbb6cd802ce3b5 /src
parentadd nginx override (diff)
downloadcrimson-c35bb440ffb9cd28048e3d9a2c0ee272cb14f6e9.tar.gz
crimson-c35bb440ffb9cd28048e3d9a2c0ee272cb14f6e9.tar.bz2
crimson-c35bb440ffb9cd28048e3d9a2c0ee272cb14f6e9.zip
update alpine version
Diffstat (limited to 'src')
-rw-r--r--src/_base.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/_base.php b/src/_base.php
index d53905d..4124fbf 100644
--- a/src/_base.php
+++ b/src/_base.php
@@ -248,6 +248,15 @@ abstract class Base {
}
}
+ /**
+ * Formats a ISO date
+ * @param $iso_date the ISO date
+ */
+ public function format_date(string $iso_date): string
+ {
+ return date("Y-m-d D H:i", strtotime($iso_date));
+ }
+
// =============================================================== HTTP POST ==
/**