Skip to content

Commit

Permalink
Fix PWSWeather Time Format
Browse files Browse the repository at this point in the history
Fixes #1, thanks @f2mbsb!
  • Loading branch information
leoherzog authored Aug 31, 2020
1 parent 4412dda commit 9f9cd5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code.gs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function updatePWSWeather_() {
let request = 'http://www.pwsweather.com/pwsupdate/pwsupdate.php';
request += '?ID=' + pwsWeatherStationID;
request += '&PASSWORD=' + pwsWeatherPassword;
request += '&dateutc=' + Utilities.formatDate(new Date(station.obsTimeUtc), 'UTC', 'yyyy-MM-dd hh:mm:ss');
request += '&dateutc=' + Utilities.formatDate(new Date(station.obsTimeUtc), 'UTC', 'yyyy-MM-dd HH:mm:ss');
request += '&tempf=' + station.imperial.temp;
if (station.imperial.windSpeed != null) request += '&windspeedmph=' + station.imperial.windSpeed;
if (station.winddir != null) request += '&winddir=' + station.winddir;
Expand Down

0 comments on commit 9f9cd5d

Please sign in to comment.