Skip to content
  • Vincent Petry's avatar
    Fix unit tests that failed due to microseconds (#26502) · 8e9545dd
    Vincent Petry authored
    Since PHP 7.1.0RC4 the DateTime object populates the microsecond part.
    Since databased usually don't store this, comparing the result with the
    original date would fail.
    
    This fixes the assertions by comparing the dates using a format that
    doesn't contain the microseconds part.
    8e9545dd