From d878458d2e2c1e02fefe055c48e18c5a59e9c7b9 Mon Sep 17 00:00:00 2001 From: chee Date: Sat, 3 Sep 2016 14:31:07 +0000 Subject: [PATCH] =?UTF-8?q?add=20method=20name=20to=20timezone.time=20call?= =?UTF-8?q?=20=F0=9F=98=B3=20=F0=9F=99=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bot.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.rb b/bot.rb index e88d367..22d8b9e 100644 --- a/bot.rb +++ b/bot.rb @@ -32,7 +32,7 @@ def get_person_time(person) result = db.execute("select place from people where person = '#{person}';") if result[0] timezone = Timezone[result[0][0]] - time = timezone(Time.now) + time = timezone.time(Time.now) "#{time.hour}:#{time.min}" else "unknown"