Displaying actual date

This commit is contained in:
Pawel Kadluczka 2016-11-07 23:07:42 -08:00 committed by moozzyk
parent 81ddada76b
commit b865716841
1 changed files with 2 additions and 1 deletions

View File

@ -19,6 +19,7 @@
<label for="zipCode">Zip</label><input type="text" id="zipCode" value="98052" />
<input type="submit" value="Send report" />
</form>
<br />
<div>
<h3>Weather reports</h3>
<table id="reportsTable">
@ -55,7 +56,7 @@
<td>${report.ZipCode}</td>
<td>${report.Temperature}&#8457; </td>
<td>${report.Weather.match(/[A-Z][a-z]+|[0-9]+/g).join(" ")}</td>
<td>${report.ReportTime}</td>`;
<td>${new Date(report.ReportTime)}</td>`;
}
}