|
|
|
@ -673,7 +673,10 @@ class SerializacaoXML(Serializacao): |
|
|
|
return raiz |
|
|
|
|
|
|
|
def serializar_evento(self, evento, tag_raiz='evento', retorna_string=False): |
|
|
|
tz = datetime.now().astimezone().strftime('%z') |
|
|
|
if six.PY2: |
|
|
|
tz = datetime.now().strftime("%z") |
|
|
|
else: |
|
|
|
tz = datetime.now().astimezone().strftime('%z') |
|
|
|
tz = "{}:{}".format(tz[:-2], tz[-2:]) |
|
|
|
raiz = etree.Element(tag_raiz, versao='1.00', xmlns=NAMESPACE_NFE) |
|
|
|
e = etree.SubElement(raiz, 'infEvento', Id=evento.identificador) |
|
|
|
|