summaryrefslogtree/nfs/website.git//.wiki commitdiff
path: root/src/web/core/core.php
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2024-09-24 17:31:18 -0400
committerFreya Murphy <freya@freyacat.org>2024-09-24 17:31:18 -0400
commit0814a5b59292c2a122e328797befc57de29ec5de (patch)
tree2205ade2862bb2a1800785b4b05eab1c528f0a5d /src/web/core/core.php
parentadd eff button (diff)
downloadwebsite-0814a5b59292c2a122e328797befc57de29ec5de.tar.gz
website-0814a5b59292c2a122e328797befc57de29ec5de.tar.bz2
website-0814a5b59292c2a122e328797befc57de29ec5de.zip
update blog times, fix blog refs
Diffstat (limited to '')
-rw-r--r--src/web/core/core.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/web/core/core.php b/src/web/core/core.php
index d71870e..d15436a 100644
--- a/src/web/core/core.php
+++ b/src/web/core/core.php
@@ -23,6 +23,8 @@ abstract class Core {
*/
public static function asset_stamp(string $path): int
{
+ if (ENVIRONMENT == 'devlopment')
+ return time();
$path = PUBLIC_ROOT . '/' . $path;
return @filemtime($path);
}
@@ -80,6 +82,6 @@ abstract class Core {
*/
public static function format_date(string $iso_date): string
{
- return date("Y-m-d D H:m", strtotime($iso_date));
+ return date("Y-m-d D H:i", strtotime($iso_date)) . ' EST';
}
}