Author Topic: How to Change Time to PM/AM in Earthquake Script  (Read 583 times)

0 Members and 1 Guest are viewing this topic.

Offline Bunty

  • Forecaster
  • *****
  • Posts: 2432
  • Stillwater, home of Oklahoma State University
    • Welcome to Stillwater Weather
How to Change Time to PM/AM in Earthquake Script
« on: April 10, 2017, 02:58:17 AM »
In the quake-json.php script how do I  change how the time is presented in the loggings?  I want change it to AM/PM, rather than 24 hour time.

Also the 2nd home page using modified AltDashboard 6.95 at http://stillwaterweather.com/2ndhome.php

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1986
    • My PWS at Leuven Belgium Europe
Re: How to Change Time to PM/AM in Earthquake Script
« Reply #1 on: April 10, 2017, 03:26:16 AM »
In the quake-json.php script how do I  change how the time is presented in the loggings?  I want change it to AM/PM, rather than 24 hour time.
It can be changed in line 110/111 of  quake-json.php
Code: [Select]
//  pick a format for the time to display ..uncomment one (or make your own)
//$timeFormat = 'D, Y-m-d H:i:s T';  // Fri, 2006-03-31 14:03:22 TZone
  $timeFormat = 'D, M-d-Y H:i:s T';  // Fri, 31-Mar-2006 14:03:22 TZone
Change it to something such as 'M j Y g:ia'
Wim