What command would I create so that any user can look up their current time, date, timezone, etc? I’ve tried changing the output by changing the moment.js formatting:
!addcom !time $(touser), your current time and date is $(time $(query) “h:mm:ss A on MMMM Do YYYY”). Your timezone is $(time $(query) “[GMT]Z”).
It outputs in the format right, but I had people in different timezones test it out. For some reason, it always outputs EST time. Is there a way I can change this command so any user can get the time according to their timezone?
$(query) that is specified would cause the output to be in a certain format.
!addcom !testtime $(time US/Central "MMMM Do YYYY, h:mm:ss a z [GMT]Z")
would result in
April 9th 2016, 12:01:56 am CDT GMT-05:00
being printed upon usage.
I know one can specify a timezone from the list of established ones on the time variable page so that it’ll always output the time from that timezone, but is there a way for a user to get the time from their own timezone?
It’s impossible to know where a user lives from chat, sorry.
Ah, ok then, thanks for replying.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.