Skip to content

Commit

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

from six import text_type, iteritems

import isodate

from rdflib.namespace import NamespaceManager
from rdflib import Variable, BNode, Graph, ConjunctiveGraph, URIRef, Literal
from rdflib.term import Node
Expand Down Expand Up @@ -242,7 +244,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 b997e62

Please sign in to comment.