I think I found the issue. The USGS has a tz field in the JSON for the quake details that is not (currently) adjusted for daylight savings time at the lat/long of the quake.
Try changing quake-json.php from $Qtimestamp = $Qtimestamp+$onequake['properties']['tz']*60;
$QDateTime = gmdate($timeFormat,$Qtimestamp);
to // $Qtimestamp = $Qtimestamp+$onequake['properties']['tz']*60;
$QDateTime = date($timeFormat,$Qtimestamp);
and see if that fixes the issue.
It worked. Thanks. Will this script have to be readjusted back to the way it was when daylight time changes back to standard time?
I didn't realize it needed fixed until the drama on Monday, May 29th, when earthquakes started acting up in the immediate Stillwater area for the first time in a good while. The third and final quake being the strongest startled me with a very loud thunder like explosive noise. It was only 2.9 in magnitude but centered only a mile or so from my home. The loud roar of nearby low magnitude earthquakes of around 3.0 is mightier than their bite. Later, noticed the earthquake script reported it an hour too early.
Meanwhile, I continue have to hope the quakes don't get much stronger. It's a greater worry of mine than a tornado coming. I know that quakes in the 5.0 to 6.0 range in Oklahoma in magnitude when centered in or near towns can cause serious damage, especially to older buildings. Thankfully, quakes that strong are still rare around here.