Casting default timestamp template to integer

The documentation of IFC indicates that the timestamp must be of type Integer. (https://standards.buildingsmart.org/IFC/DEV/IFC4_2/FINAL/HTML/link/ifctimestamp.htm)
If not, it cause some problems importing the generated IFC file in some platforms
This commit is contained in:
gpioto
2019-08-26 14:12:09 -03:00
committed by Thomas Krijnen
parent a851a25ddc
commit 98f4c8518e
@@ -66,7 +66,7 @@ DEFAULTS = {
"application_version": lambda d: main.version,
"project_globalid": lambda d: compress(uuid.uuid4().hex),
"schema_identifier": lambda d: main.schema_identifier,
"timestamp": lambda d: time.time(),
"timestamp": lambda d: int(time.time()),
"timestring": lambda d: time.strftime("%Y-%m-%dT%H:%M:%S", time.gmtime(d.get('timestamp') or time.time()))
}