From ba95de8198de07c4c642f799e02a37161cbaaeee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Cantu=C3=A1ria?= Date: Wed, 20 Mar 2019 10:45:20 -0300 Subject: [PATCH] =?UTF-8?q?Corrige=20valor=20na=20vari=C3=A1vel=20timestam?= =?UTF-8?q?p=20(#2637)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: edwardoliveira --- sapl/lexml/OAIServer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sapl/lexml/OAIServer.py b/sapl/lexml/OAIServer.py index 643d17f9e..4c1d85c19 100644 --- a/sapl/lexml/OAIServer.py +++ b/sapl/lexml/OAIServer.py @@ -89,7 +89,7 @@ class OAIServer: def create_header(self, record): oai_id = self.get_oai_id(record['record']['id']) - timestamp = record['record']['when_modified'] + timestamp = record['record']['when_modified'] if record['record']['when_modified'] else datetime.now() timestamp = timestamp.replace(tzinfo=None) sets = [] deleted = record['record']['deleted']