3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-27 14:29:29 +01:00

24 horu clock to appease roi

This commit is contained in:
reality 2013-10-20 17:55:05 +00:00
parent a721d82e76
commit e45aa0bcde

View File

@ -58,7 +58,7 @@ var commands = function(dbot) {
this.api.resolveUser(event.server, nick, function(user) {
if(user) {
if(user.timezone) {
var fDate = moment.tz(user.timezone).format('LLL');
var fDate = moment.tz(user.timezone).format('MMMM Do YYYY HH:mm:ss');
event.reply('The time for ' + user.primaryNick + ' is: ' + fDate);
} else {
event.reply(user.primaryNick + ' doesn\'t have a timezone set. They can do this with ~timezone.');