Enables the BDD tests to check timezone-invariance of inserting and reading datetime attributes.
What are the changes implemented in this PR?
During deserialization of datetime, we incorrectly used fromtimestamp function. This function is environment timezone-sensitive. The correct function to use is utcfromtimestamp which converts the milliseconds since epoch to UTC datetime object. This conforms to the serialization process: we convert datetime object to milliseconds since epoch assuming the datetime is in UTC.
Added step which sets environment timezone to time_zone_label
Fixed parsing of class AttributeMatcher and ValueMatcher.
What is the goal of this PR?
Enables the BDD tests to check timezone-invariance of inserting and reading datetime attributes.
What are the changes implemented in this PR?
fromtimestamp
function. This function is environment timezone-sensitive. The correct function to use isutcfromtimestamp
which converts the milliseconds since epoch to UTC datetime object. This conforms to the serialization process: we convert datetime object to milliseconds since epoch assuming the datetime is in UTC.time_zone_label
AttributeMatcher
andValueMatcher
.Fixes #298.