update blog times, fix blog refs

This commit is contained in:
Freya Murphy 2024-09-24 17:31:18 -04:00
parent 941e525f8e
commit 0814a5b592
Signed by: freya
GPG key ID: 744AB800E383AE52
3 changed files with 5 additions and 2 deletions

View file

@ -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);
}

View file

@ -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';
}
}

View file

@ -3,6 +3,7 @@
// ========================= ENVIRONMENT ==
ini_set('html_errors', '1');
date_default_timezone_set('America/New_York');
// ENVIRONMENT
//