We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f171fee + 6e12a24 commit 3ffe31aCopy full SHA for 3ffe31a
1 file changed
lib/sidekiq/cron/job.rb
@@ -13,7 +13,6 @@ class Job
13
#how long we would like to store informations about previous enqueues
14
REMEMBER_THRESHOLD = 24 * 60 * 60
15
LAST_ENQUEUE_TIME_FORMAT = '%Y-%m-%d %H:%M:%S %z'
16
- LAST_ENQUEUE_TIME_FORMAT_OLD = '%Y-%m-%d %H:%M:%S'
17
18
#crucial part of whole enquing job
19
def should_enque? time
@@ -588,7 +587,7 @@ def parse_args(args)
588
587
def parse_enqueue_time(timestamp)
589
DateTime.strptime(timestamp, LAST_ENQUEUE_TIME_FORMAT).to_time.utc
590
rescue ArgumentError
591
- DateTime.strptime(timestamp, LAST_ENQUEUE_TIME_FORMAT_OLD).to_time.utc
+ DateTime.parse(timestamp).to_time.utc
592
end
593
594
def not_past_scheduled_time?(current_time)
0 commit comments