Comments (5)
Hello,
thanks for the report. I am working on it.
As a workaround, you could use "every tuesday at 00:00"
as seen in
Lines 265 to 288 in 49b6670
I think I am guilty of interpreting "every monday at midnight"
as "every monday at 00:00"
. I need to straighten that.
Now, I still have to double-check, the entrance into DST is done at 02:00, it should make a 00:00 schedule skip.
from fugit.
Hello, could you please tell me if the above fix suits you? If yes, I will release 1.4.3.
require 'fugit'
ENV['TZ'] = 'Europe/Zurich'
t0 = Time.parse('2021-03-22 13:00')
p Fugit.parse('every monday at midnight').next_time(t0).to_s
# ==> "2021-03-29 00:00:00 +0200"
# and not "2021-04-05 00:00:00 +0200"
Best regards.
from fugit.
Good morning @jmettraux
Many thanks for the quick reaction. I tested the master branch with our test and now it works. I think you can release 1.4.3.
Best regards, Andy
from fugit.
It's released https://rubygems.org/gems/fugit/versions/1.4.3
Thanks again!
from fugit.
Hello,
for the sake of completeness, I added a spec for when leaving the DST (October) and it failed. I have fixed the problem and released 1.4.4. 550e571
Please upgrade before October.
Best regards.
from fugit.
Related Issues (20)
- multi-headed Fugit::Cron instance
- Specify which sidekiq-cron version is available HOT 2
- Specify which sidekiq-cron version is available HOT 5
- Regression with parsing in 1.9+ HOT 5
- Behaviour change between 1.4.4 and 1.4.5 HOT 8
- be liberal with extra commas
- Implement the & cron modifier HOT 1
- Issue parsing 0/1 compared to * or */1 HOT 4
- Introduce OpenBSD cron ~ notation HOT 1
- Fugit.parse incorrectly parsing am/pm HOT 5
- time computation with monthly duration like "P-2M" is incorrect
- Un-representable inputs should raise an error HOT 4
- Incorrect next_time for cron that is supposed to run every 3 hours for America/New_York HOT 3
- If given 6 fields, the first one is interpreted as seconds HOT 2
- Version 1.10.0 not compatible with ruby 2.2.6 HOT 8
- Examples in Readme don't work: undefined method 'next' for Fugit::Cron HOT 1
- cron #previous_time loop breaker issue HOT 6
- cron #previous_time loop breaker issue HOT 3
- #next_time breaks on DST end HOT 4
- Cron inconsistent behaviour with union vs intersection 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 fugit.