Commits

lilydjwg committed e356c11

use locale's date format

Comments (0)

Files changed (2)

   '''availability test'''
   if msg == 'ping':
     dt = self.now+config.timezoneoffset
-    self.reply('pong at %s (%s)' % (
-      dt.strftime(longdateformat),
-      WEEKDAYSTR[dt.weekday()],
-    ))
+    self.reply('pong at %s' % dt.strftime('%c'))
     self.user_reset_stop()
     return True
   return False
 CMD_QUIT = 1
 CMD_RESTART = 2
 
-WEEKDAYSTR = (_("Monday"), _("Tuesday"), _("Wednesday"), _("Thursday"), _("Friday"), _("Saturday"), _("Sunday"))
-
 def show_privileges(flag):
   flag = int(flag)
   ret = []