Removed AM/PM from time
This commit is contained in:
parent
db27df7043
commit
d2ec6b090d
@ -1,5 +1,5 @@
|
|||||||
function run(msg, matches)
|
function run(msg, matches)
|
||||||
text = os.date("Heute ist %A, der %d. %B %Y und es ist %H:%M:%S Uhr [%p]")
|
text = os.date("Heute ist %A, der %d. %B %Y und es ist %H:%M:%S Uhr")
|
||||||
|
|
||||||
-- Days
|
-- Days
|
||||||
text = string.gsub(text, "Monday", "Montag")
|
text = string.gsub(text, "Monday", "Montag")
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
-- If you have a google api key for the geocoding/timezone api
|
-- If you have a google api key for the geocoding/timezone api
|
||||||
api_key = nil
|
api_key = nil
|
||||||
base_api = "https://maps.googleapis.com/maps/api"
|
base_api = "https://maps.googleapis.com/maps/api"
|
||||||
dateFormat = "%A, der %d. %B %Y und es ist %H:%M:%S Uhr [%p]"
|
dateFormat = "%A, der %d. %B %Y und es ist %H:%M:%S Uhr"
|
||||||
|
|
||||||
-- Need the utc time for the google api
|
-- Need the utc time for the google api
|
||||||
function utctime()
|
function utctime()
|
||||||
@ -114,7 +114,7 @@ end
|
|||||||
|
|
||||||
function run(msg, matches)
|
function run(msg, matches)
|
||||||
if string.match(msg.text, "^/[Z|z]eit$") or string.match(msg.text, "^/[T|t]ime$") then
|
if string.match(msg.text, "^/[Z|z]eit$") or string.match(msg.text, "^/[T|t]ime$") then
|
||||||
text = os.date("Es ist %H:%M:%S Uhr [%p]")
|
text = os.date("Es ist %H:%M:%S Uhr")
|
||||||
return text
|
return text
|
||||||
else
|
else
|
||||||
return getformattedLocalTime(matches[1])
|
return getformattedLocalTime(matches[1])
|
||||||
|
Reference in New Issue
Block a user