Skip to content

Issue with using time delta for Time Machine request #592

@nhcwong

Description

@nhcwong

Describe the issue

I'm trying to make a Time Machine request using a time delta as the time parameter. I'm finding that if I put in a time delta any greater than -100000 , it will instead treat it as a unix time stamp.

For example, when I make the following request:
https://timemachine.pirateweather.net/forecast/[apikey]/-20.0431,146.273,-86400?

I get the expected result of:
"time":1771995000

However, when I try to get data from 6 months ago:
https://timemachine.pirateweather.net/forecast/[apikey]/-20.0431,146.273,-15778476?

I instead get:
"time":-15778500

Can someone explain why this is happening, and if there's a workaround? Thanks.

Acknowledgements

  • I have searched this repository and Home Assistant Repository to see if the issue has already been reported.
  • I have read through the API documentation before opening this issue.
  • I have not included my API key anywhere in my issue.
  • I have written an informative title.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions