pacific daylight time zone php

Solutions on MaxInterview for pacific daylight time zone php by the best coders in the world

showing results for - "pacific daylight time zone php"
Angelo
02 Sep 2020
1date_default_timezone_set('America/Los_Angeles'); // or wherever you are
2
3$time = time();
4
5if ($time >= strtotime("Second Sunday March 0")  && $time < strtotime("First Sunday November 0")) 
6{
7
8    echo date('m/d/y h:i a', $time);
9
10} else {
11
12    echo date('m/d/y h:i a', $time);
13
14}