From 1f59c5ad99dd7cf77633585db555d3d4c9d120e8 Mon Sep 17 00:00:00 2001 From: Nathan Broadbent Date: Mon, 1 Aug 2011 12:55:48 +0800 Subject: [PATCH] fixed bug --- octopus_sinatra.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/octopus_sinatra.rb b/octopus_sinatra.rb index b4bfe2f..eae0f10 100755 --- a/octopus_sinatra.rb +++ b/octopus_sinatra.rb @@ -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