Browse Source

set default timezone to Asia/Jakarta

pull/3/head
Muhammad Sulaiman Yusuf 2 years ago
parent
commit
13b2d53c9c
  1. 1
      app/Http/Controllers/ActivityController.php
  2. 2
      bootstrap/app.php
  3. 2
      config/app.php

1
app/Http/Controllers/ActivityController.php

@ -5,7 +5,6 @@ use App\Models\Activity;
use App\Models\CommentActivity; use App\Models\CommentActivity;
use App\Models\Link; use App\Models\Link;
use App\Models\Project; use App\Models\Project;
use App\Models\ReportActivity;
use App\Models\TemplateGantt; use App\Models\TemplateGantt;
use App\Models\UserToActivity; use App\Models\UserToActivity;
use Illuminate\Http\Request; use Illuminate\Http\Request;

2
bootstrap/app.php

@ -6,7 +6,7 @@ require_once __DIR__.'/../vendor/autoload.php';
dirname(__DIR__) dirname(__DIR__)
))->bootstrap(); ))->bootstrap();
date_default_timezone_set(env('APP_TIMEZONE', 'UTC')); date_default_timezone_set(env('APP_TIMEZONE', 'Asia/Jakarta'));
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------

2
config/app.php

@ -5,5 +5,7 @@
'cost_health_danger_threshold' => 0, 'cost_health_danger_threshold' => 0,
'schedule_health_warning_threshold' => 30, 'schedule_health_warning_threshold' => 30,
'schedule_health_danger_threshold' => 0, 'schedule_health_danger_threshold' => 0,
'timezone' => env('APP_TIMEZONE', 'Asia/Jakarta'),
'app_timezone' => env('APP_TIMEZONE', 'Asia/Jakarta'),
]; ];
?> ?>

Loading…
Cancel
Save