Browse files

Merge pull request #9 from EvanDotPro/hotfix/show-timezone-locale

Show the user's timezone local with !time {nick}
  • Loading branch information...
2 parents 3172e75 + 65fc64b commit e348ed5c6467d64b024f20fc03bfd71202713dd4 @DASPRiD committed Jun 9, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 dasbit/plugin/now.py
View
6 dasbit/plugin/now.py
@@ -39,6 +39,6 @@ def getTime(self, source, identifier):
return
now = now.astimezone(tz)
-
- self.client.reply(source, now.strftime('%Y-%m-%d %H:%M:%S %Z%z'))
-
+ self.client.reply(source, '%s (%s)' % (now.strftime('%Y-%m-%d %H:%M:%S %Z%z'), timezone))
+ else:
+ self.client.reply(source, now.strftime('%Y-%m-%d %H:%M:%S %Z'))

0 comments on commit e348ed5

Please sign in to comment.