diff options
| author | Freya Murphy <freya@freyacat.org> | 2026-02-23 12:41:40 -0500 |
|---|---|---|
| committer | Freya Murphy <freya@freyacat.org> | 2026-02-23 12:41:40 -0500 |
| commit | c35bb440ffb9cd28048e3d9a2c0ee272cb14f6e9 (patch) | |
| tree | 2022dc7215405ea04993a85f8edbb6cd802ce3b5 /src | |
| parent | add nginx override (diff) | |
| download | crimson-c35bb440ffb9cd28048e3d9a2c0ee272cb14f6e9.tar.gz crimson-c35bb440ffb9cd28048e3d9a2c0ee272cb14f6e9.tar.bz2 crimson-c35bb440ffb9cd28048e3d9a2c0ee272cb14f6e9.zip | |
update alpine version
Diffstat (limited to '')
| -rw-r--r-- | src/_base.php | 9 |
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 == /** |