strf datetime before saving it in settings (badges.py)
This commit is contained in:
parent
751c93d59c
commit
0f37455665
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ class Module(ModuleManager.BaseModule):
|
|||
for badge_name in badges.keys():
|
||||
if badge_name.lower() == badge_lower:
|
||||
raise utils.EventError("You already have a '%s' badge" % badge)
|
||||
badges[badge] = self._now()
|
||||
badges[badge] = self._format_datetime(self._now())
|
||||
self._set_badges(event["user"], badges)
|
||||
event["stdout"].write("Added '%s' badge" % badge)
|
||||
|
||||
|
|
Loading…
Reference in a new issue