Comments (9)
Same here.
This is exactly what I came to report.
While troubleshooting I've made a debug print log:
# this is when the function was called
2021-04-10 01:00:00.015625, light schedule updated
# this is the resulting data .. for the day before.
dawn: 2021-04-09 02:59:08.007731
dusk: 2021-04-09 20:37:25.089938
Using Astral 2.2
from astral.
It seems the solution can be achieved by edit this line of code
Lines 363 to 370 in 96496f0
from astral.
@yasirroni thanks, but what is that ? - it's not committed, not a PR? - will it make into a release soon?
from astral.
That is the code that astral use that we need to edit and make a PR to solve local timezone bug changing day.
from astral.
See suntime package. Basically they reproduce the same bug and I already fix that on suntime. Haven't got time to fix here too. I just pin point the problem for those willing to solve it.
from astral.
@yasirroni unfortunatly, I can not use suntime due to SatAgro/suntime#18
from astral.
Have you try my fork on test-pypi? Go to test-pypi and search suntime-yasirroni
from astral.
@yasirroni thanks, but I try to stick to libraries from pip or so, to prevent wild searching and retracing what I did when something needs to run on another distro/hardware x years later.
from astral.
@yasirroni thanks, but I try to stick to libraries from pip or so, to prevent wild searching and retracing what I did when something needs to run on another distro/hardware x years later.
Then, you can fork it and publish it on pypi yourself. Easy, hahaa
from astral.
Related Issues (20)
- Example in astral/docs/_sources/index.rst.txt needs to corrected.
- Feature request: Calculate Moon rise and set times HOT 4
- Astral v2 outputs dates in microseconds
- Dead links in docs
- Buggy times for northern hemisphere HOT 2
- Sunrise/sunset sometimes throws "sun always above horizon" during polar (24h) night
- Problems with error handling HOT 1
- v3.1 Changelog? HOT 1
- Mypy flags comment as invalid HOT 1
- Moon culminant/noon
- Sunrise time calculation error
- Sun rise and set cal error
- Sunset times returning for previous day HOT 4
- Missing sunsets for arctic circle locations HOT 2
- Add an Optional Argument to sun() Function to Return Only Specified Keys
- On only some days: ValueError: Unable to find a dusk time on the date specified HOT 8
- Help understanding the `timezone` field of a `LocationInfo`, does it do anything when used in tandem with sun?
- No moonrise when official almanac states there is (ditto sunrise) HOT 2
- Wrong calculation of obscuring feature calculation HOT 10
- moon rise issues with timezone HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from astral.