Permalink
Browse files

fixed bug

  • Loading branch information...
ndbroadbent committed Aug 1, 2011
1 parent 392e1b1 commit 1f59c5ad99dd7cf77633585db555d3d4c9d120e8
Showing with 2 additions and 1 deletion.
  1. +2 −1 octopus_sinatra.rb
View
@@ -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

0 comments on commit 1f59c5a

Please sign in to comment.