Page MenuHomePhorge

Fix invalid period in a wallet notice text
ClosedPublic

Authored by machniak on Mar 5 2021, 9:07 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, May 9, 12:33 AM
Unknown Object (File)
Sat, May 4, 7:30 AM
Unknown Object (File)
Fri, May 3, 5:08 AM
Unknown Object (File)
Thu, Apr 25, 1:34 AM
Unknown Object (File)
Apr 13 2024, 3:01 AM
Unknown Object (File)
Apr 11 2024, 5:35 AM
Unknown Object (File)
Apr 4 2024, 9:03 PM
Unknown Object (File)
Mar 17 2024, 4:00 AM
Subscribers
Restricted Project

Details

Reviewers
vanmeeuwen
Group Reviewers
Restricted Project
Commits
rKb8639bdf84cc: Fix invalid period in a wallet notice text
Summary

According to one test assertion on 2021-03-05 we expect "... will last until about 2021-04-02 (4 weeks)."
This test was failing occasionally.

I found that one of the dates we were comparing was N microseconds ahead.
So, the period was less than a second shorter. Carbon didn't round this.

A solution is to just use the same time on both compared dates.

Test Plan

./phpunit

Diff Detail

Repository
rK kolab
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Mar 13 2021, 9:33 AM
This revision was automatically updated to reflect the committed changes.