Skip to content

Commit

Permalink
Spec #previous_time vs America/Sao_Paulo, gh-95
Browse files Browse the repository at this point in the history
  • Loading branch information
jmettraux committed Mar 13, 2024
1 parent 317d725 commit 51d341f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spec/cron_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -886,6 +886,11 @@ class Fugit::Cron::TimeCursor
# run when either field matches the current time.
# For example, ``30 4 1,15 * 5'' would cause a command to be run
# at 4:30 am on the 1st and 15th of each month, plus every Friday.

[ '21 0 * * 1%2 America/Sao_Paulo',
'2024-03-04 12:21:00', '2024-03-13 12:00' ],
[ '21 0 * * 1%2 America/Santarem',
'2024-03-04 12:21:00', '2024-03-13 12:00' ],
]

describe '#previous_time' do
Expand Down

0 comments on commit 51d341f

Please sign in to comment.