I have an input string that will look something like
“Monday 2:00 pm” and I need to get a timestamp representation of this, but I cant figure out how to introduce different timezones.
For example right now I just simply do
$name = "Monday";
$time_string = "2:00 pm";
$time_stamp = strtotime("$name $time_string");
which will get me a timestamp but say someone in ‘America/New_York’ inputs this v someone in ‘America/Los_Angeles’ the timestamps should be different correct?
I believe you can set the default timezone before you call strtotime:
But the UNIX epoch is always in UTC, so I’m not sure this makes any difference to the timestamp: