Rest api returning wrong date

I’m using the rest platform to get info from ipgeolocation.
My code:

rest:
    scan_interval: 3600
    resource_template: https://api.ipgeolocation.io/astronomy?apiKey=<MyAPICODE>&lat=37&long=-121
    sensor:
      - name: "api-test"
        value_template: "OK"
        json_attributes:
          - date
          - current_time
          - moonrise
          - moonset

This works fine, except the returned date is off by a day. It shows yesterday’s date.

If I put this in the url of my browser the resulting date is correct, today.

Any help would be appreciated.