Skip to content

Commit

Permalink
Fix deprecated method calls
Browse files Browse the repository at this point in the history
  • Loading branch information
mikee47 committed Feb 25, 2019
1 parent e4a8e1f commit c40a80a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions samples/MeteoControl/app/application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,9 @@ int onClockUpdating(HttpConnection& client, bool successful)
}

// Extract date header from response
clockValue = client.getServerDate();
clockValue = client.getResponse()->headers.getServerDate();
if(clockValue.isNull())
clockValue = client.getLastModifiedDate();
clockValue = client.getResponse()->headers.getLastModifiedDate();
if(!clockValue.isNull())
clockValue.addMilliseconds(ActiveConfig.AddTZ * 1000 * 60 * 60);

Expand Down

0 comments on commit c40a80a

Please sign in to comment.