ruboty-world_clock 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ruboty/actions/world_clock.rb +2 -2
- data/lib/ruboty/world_clock/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4ed7b9a5eb9c3716b11481ccb60c169ac47f2e40
|
4
|
+
data.tar.gz: 8c71545ed4c068222c246caa962c0cd3d0313276
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d15a11a4786e03dd7e8ae9e2e0a9efa5d5f06ae36c749984e48f3ee53b57ebb6c6d1ab1d44034bee7ada3bced954c2150ed77fa6a32bde8bb4c982decc9e723b
|
7
|
+
data.tar.gz: e4a69f74a0d4c4ce3bf05c6b787d35188ca1533cdedebd3f1f3d1f1ad17e8d61ea8af463f7d66582600943f69f0a8fef44c02658fb9089baeebce590cfe3154a
|
@@ -3,9 +3,9 @@ module Ruboty
|
|
3
3
|
class WorldClock < Base
|
4
4
|
def call
|
5
5
|
if timezone.present?
|
6
|
-
message.reply(Time.now.in_time_zone(timezone).strftime('%m
|
6
|
+
message.reply(Time.now.in_time_zone(timezone).strftime('%Y-%m-%d %H:%M:%S'))
|
7
7
|
else
|
8
|
-
message.reply("Not found the timezone: #{message[:zone]}")
|
8
|
+
message.reply("Not found the timezone: \"#{message[:zone]}\".")
|
9
9
|
end
|
10
10
|
end
|
11
11
|
|