We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e8f5a62 commit 6e12a24Copy full SHA for 6e12a24
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
@@ -587,7 +586,7 @@ def parse_args(args)
587
586
def parse_enqueue_time(timestamp)
588
DateTime.strptime(timestamp, LAST_ENQUEUE_TIME_FORMAT).to_time.utc
589
rescue ArgumentError
590
- DateTime.strptime(timestamp, LAST_ENQUEUE_TIME_FORMAT_OLD).to_time.utc
+ DateTime.parse(timestamp).to_time.utc
591
end
592
593
def not_past_scheduled_time?(current_time)
0 commit comments