Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update time display with colon #23

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/helpers/timer_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ def format_time(time)
run_rand_20 if rand_run(0.2)
run_rand_50 if rand_run(0.5)
run_rand_90 if rand_run(0.9)
time.strftime('%Y-%m-%d:%H:%M:%S')
time.strftime('%Y-%m-%d::%H:%M:%S')
end

def rand_run(value)
Expand Down
2 changes: 1 addition & 1 deletion spec/helpers/timer_helper_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
it "returns correctly formatted time" do
100.times do
current_time = Time.now()
expect(helper.format_time(current_time)).to eql(current_time.strftime('%Y-%m-%d:%H:%M:%S'))
expect(helper.format_time(current_time)).to eql(current_time.strftime('%Y-%m-%d::%H:%M:%S'))
end
end
end
Expand Down