php - Laravel - Carbon Not Factoring in Daylight Savings Time -
i'm using carbon in laravel work on dates. realized local copy of php set utc, in code i'm setting timezone in carbon:
$dt = carbon::now('america/new_york');
strangely, it's still spitting out date 1 hour behind new york time:
echo $dt;
yields:
2017-07-25 16:29:37
but 5:29pm
it seems though it's hour off because it's not factoring in daylight savings time. can't find on stackoverflow or google related daylight savings time in carbon, read says if set timezone correctly, account dst on own.
Comments
Post a Comment