When I execute Carbon::now('US/Eastern')
I get the following from a var_dump:
object(Carbon\Carbon)[559]
public 'date' => string '2014-12-15 21:52:54.000000' (length=26)
public 'timezone_type' => int 3
public 'timezone' => string 'US/Eastern' (length=10)
This is what I am expecting.
When I execute date('Y-m-d H:i:s', Carbon::now('US/Eastern')->timestamp)
I get the following:
string '2014-12-16 02:52:54' (length=19)
The timezone is being ignored in the timestamp here.
Why do the date and time differ between each?
How can I get an accurate timestamp into the date
function that reflects the timezone?