summaryrefslogtreecommitdiff
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
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/_controller/blog.php2
-rw-r--r--src/web/core/core.php4
-rw-r--r--src/web/index.php1
3 files changed, 5 insertions, 2 deletions
diff --git a/src/web/_controller/blog.php b/src/web/_controller/blog.php
index b2ddbcc..922ae72 100644
--- a/src/web/_controller/blog.php
+++ b/src/web/_controller/blog.php
@@ -45,7 +45,7 @@ class Blog_controller extends Controller {
}
$this->view('header', $data);
$this->view('apps/blog_post', $data);
- $ref = "blog/post{$name}";
+ $ref = "blog/post/{$name}";
$this->comments_controller->comments($data['post']['meta']['name'], $ref);
$this->view('footer', $data);
}
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';
}
}
diff --git a/src/web/index.php b/src/web/index.php
index 51ec652..bc9eeff 100644
--- a/src/web/index.php
+++ b/src/web/index.php
@@ -3,6 +3,7 @@
// ========================= ENVIRONMENT ==
ini_set('html_errors', '1');
+date_default_timezone_set('America/New_York');
// ENVIRONMENT
//