mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-23 10:22:47 +00:00
913f9f2262
create(timestamp=0) computed the FILE_NAME timestring with
`d.get("timestamp") or time.time()`, which treats 0 (a legitimate
epoch timestamp) as unset because 0 is falsy. The header ended up
with the current wall-clock time in FILE_NAME while IFCOWNERHISTORY
correctly stored CreationDate=0, an inconsistent pair of dates in
the same file. Switched to an explicit None check so an explicit
timestamp of 0 is honoured the same way any other explicit
timestamp is.
Generated with the assistance of an AI coding tool.
ifcopenshell-python
Python bindings, utility functions, and high-level API for IfcOpenShell.