Converted epoch time to datetime.
Time issue resolved. Template is now showing day of week, time and am or pm. If statements for quake depth also now working.