From c35bb440ffb9cd28048e3d9a2c0ee272cb14f6e9 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Mon, 23 Feb 2026 12:41:40 -0500 Subject: update alpine version --- src/_base.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/_base.php') 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 == /** -- cgit v1.2.3-freya