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 //