Skip to content

Commit

Permalink
Merge pull request #1 from diggyk/master
Browse files Browse the repository at this point in the history
Send the naive timestamp on quest creation
  • Loading branch information
diggyk committed Jun 12, 2015
2 parents d3ed0c7 + 4ceeb7f commit 1f054a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion bin/hermes
Original file line number Diff line number Diff line change
Expand Up @@ -572,9 +572,10 @@ def create_quest(args):

if args.due:
try:
target_time = parser.parse(parser.parse(args.due, yearfirst=True))
target_time = parser.parse(args.due, yearfirst=True)
target_time = target_time.replace(tzinfo=tz.tzlocal())
target_time = target_time.astimezone(tz.tzutc())
target_time = target_time.replace(tzinfo=None)
json["targetTime"] = str(target_time)
except ValueError:
sys.exit(
Expand Down
2 changes: 1 addition & 1 deletion hermes/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.1.11"
__version__ = "0.1.12"

0 comments on commit 1f054a2

Please sign in to comment.