From d97f895ede430bff4e6c026bdc7d3bc57d478940 Mon Sep 17 00:00:00 2001 From: Eduardo Calil Date: Tue, 14 Mar 2017 12:06:49 -0300 Subject: [PATCH] Fix #933 --- sapl/protocoloadm/views.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sapl/protocoloadm/views.py b/sapl/protocoloadm/views.py index 1a0b2e6f2..03f9e87ff 100644 --- a/sapl/protocoloadm/views.py +++ b/sapl/protocoloadm/views.py @@ -263,9 +263,9 @@ class ProtocoloDocumentoView(PermissionRequiredMixin, f.anulado = False f.numero = (numero['numero__max'] + 1) if numero['numero__max'] else 1 f.ano = datetime.now().year - f.data = datetime.now().strftime('%Y-%m-%d') - f.hora = datetime.now().strftime('%H:%M') - f.timestamp = datetime.now().strftime("%Y-%m-%d %H:%M") + f.data = datetime.now().date() + f.hora = datetime.now().time() + f.timestamp = datetime.now() f.assunto_ementa = self.request.POST['assunto'] f.save()