update blog times, fix blog refs
This commit is contained in:
parent
941e525f8e
commit
0814a5b592
3 changed files with 5 additions and 2 deletions
|
@ -45,7 +45,7 @@ class Blog_controller extends Controller {
|
||||||
}
|
}
|
||||||
$this->view('header', $data);
|
$this->view('header', $data);
|
||||||
$this->view('apps/blog_post', $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->comments_controller->comments($data['post']['meta']['name'], $ref);
|
||||||
$this->view('footer', $data);
|
$this->view('footer', $data);
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,6 +23,8 @@ abstract class Core {
|
||||||
*/
|
*/
|
||||||
public static function asset_stamp(string $path): int
|
public static function asset_stamp(string $path): int
|
||||||
{
|
{
|
||||||
|
if (ENVIRONMENT == 'devlopment')
|
||||||
|
return time();
|
||||||
$path = PUBLIC_ROOT . '/' . $path;
|
$path = PUBLIC_ROOT . '/' . $path;
|
||||||
return @filemtime($path);
|
return @filemtime($path);
|
||||||
}
|
}
|
||||||
|
@ -80,6 +82,6 @@ abstract class Core {
|
||||||
*/
|
*/
|
||||||
public static function format_date(string $iso_date): string
|
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';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
// ========================= ENVIRONMENT ==
|
// ========================= ENVIRONMENT ==
|
||||||
|
|
||||||
ini_set('html_errors', '1');
|
ini_set('html_errors', '1');
|
||||||
|
date_default_timezone_set('America/New_York');
|
||||||
|
|
||||||
// ENVIRONMENT
|
// ENVIRONMENT
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in a new issue