Skip to content
This repository has been archived by the owner on Oct 27, 2020. It is now read-only.

Commit

Permalink
Merge branch 'UncleClapton-hotfix/iso8601-violation-fix' into develop -
Browse files Browse the repository at this point in the history
  • Loading branch information
Marenthyu committed Nov 16, 2017
2 parents cdc906c + d092f2e commit ba04993
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sopel-modules/rat-board.py
Original file line number Diff line number Diff line change
Expand Up @@ -690,8 +690,8 @@ def append_quotes(bot, search, lines, autocorrect=True, create=True, detect_plat

json_lines = []
for line in rv.added_lines:
json_lines.append({"message":line, "updatedAt":datetime.datetime.utcnow().isoformat(),
"createdAt":datetime.datetime.utcnow().isoformat(), "author":author, "lastAuthor":author})
json_lines.append({"message":line, "updatedAt":datetime.datetime.now(datetime.timezone.utc).isoformat().replace('+00:00', 'Z'),
"createdAt":datetime.datetime.now(datetime.timezone.utc).isoformat().replace('+00:00', 'Z'), "author":author, "lastAuthor":author})
rv.rescue.quotes.extend(json_lines)
return rv

Expand Down Expand Up @@ -1128,7 +1128,7 @@ def cmd_sub(bot, trigger, rescue, lineno, line=None):
rescue.quotes.pop(lineno)
bot.say("Deleted line {}".format(lineno))
else:
rescue.quotes[lineno] = {"message":line, "updatedAt":datetime.datetime.utcnow().isoformat(),
rescue.quotes[lineno] = {"message":line, "updatedAt":datetime.datetime.now(datetime.timezone.utc).isoformat().replace('+00:00', 'Z'),
"createdAt":rescue.quotes[lineno]["createdAt"],
"author":rescue.quotes[lineno]["author"], "lastAuthor":trigger.nick}
bot.say("Updated line {}".format(lineno))
Expand Down

0 comments on commit ba04993

Please sign in to comment.