Updated Index and switched to Carbon for date handling.

This commit is contained in:
flash 2024-08-04 21:37:12 +00:00
parent e2ee567711
commit e708f99fee
47 changed files with 801 additions and 283 deletions

View file

@ -1,7 +1,6 @@
<?php
namespace Misuzu;
use Index\Environment;
use Index\Data\DbTools;
use Syokuhou\DbConfig;
use Syokuhou\FileConfig;
@ -19,9 +18,9 @@ define('MSZ_ASSETS', MSZ_ROOT . '/assets');
require_once MSZ_ROOT . '/vendor/autoload.php';
Environment::setDebug(MSZ_DEBUG);
error_reporting(MSZ_DEBUG ? -1 : 0);
mb_internal_encoding('UTF-8');
date_default_timezone_set('UTC');
date_default_timezone_set('GMT');
$cfg = FileConfig::fromFile(MSZ_CONFIG . '/config.cfg');