Skip to content

Commit

Permalink
fixed bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ndbroadbent committed Aug 1, 2011
1 parent 392e1b1 commit 1f59c5a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion octopus_sinatra.rb
Expand Up @@ -140,7 +140,8 @@ def hk_time_fmt
hk_time.strftime("%Y-%m-%d %H:%M:%S")
end

def lcd_time_fmt
def lcd_time_fmt(separator=":")
time = hk_time
hour, minute = time.hour, time.min
hour, suffix = hour >= 12 ? [hour - 12, "pm"] : [hour, "am"]
hour = 12 if hour == 0
Expand Down

0 comments on commit 1f59c5a

Please sign in to comment.