Skip to content

Commit

Permalink
Makes NOW() return an UTC date
Browse files Browse the repository at this point in the history
Closes #843
  • Loading branch information
Tpt committed Aug 28, 2018
1 parent 9da21db commit 73acf08
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rdflib/plugins/sparql/sparql.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import datetime
from collections import Mapping, MutableMapping

import isodate
from six import text_type, iteritems

from rdflib.namespace import NamespaceManager
Expand Down Expand Up @@ -242,7 +243,7 @@ def __init__(self, graph=None, bindings=None, initBindings=None):
self.graph = graph

self.prologue = None
self.now = datetime.datetime.now()
self.now = datetime.datetime.now(isodate.tzinfo.UTC)

self.bnodes = collections.defaultdict(BNode)

Expand Down

0 comments on commit 73acf08

Please sign in to comment.