Carbon::jetzt() ist nicht mit UTC

Ich bin von den Philippinen. Wenn ich mal aus Carbon::now(), es fängt meine Maschine Zeit und nicht die UTC-Zeit.

Meine config/app.php ist:

    'timezone' => 'UTC',

Dies ist mein code:

$log->dateRequest = Carbon::now();

Wenn ich mal post eine Anfrage um 9:00 Uhr (Philippinischer Zeit). Es fängt 21:00:00 statt 13:00:00 (UTC).

InformationsquelleAutor Vahn Marty | 2016-11-24

Schreibe einen Kommentar