AnalogIO / coffeecard_app

Cross-platform coffee card app for Cafe Analog
https://www.cafeanalog.dk/app
MIT License
6 stars 1 forks source link

Fix "In the future" when diff is very small #372

Closed marfavi closed 1 year ago

marfavi commented 1 year ago

When time is less than 2 minutes ahead of currentTime, do not display "in the future".

Currently, swipe receipt can display "in the future" because of time differences of a few milliseconds.

codecov[bot] commented 1 year ago

Codecov Report

Merging #372 (fefbe60) into develop (3ae7f0e) will not change coverage. The diff coverage is 100.00%.

@@           Coverage Diff            @@
##           develop     #372   +/-   ##
========================================
  Coverage    41.54%   41.54%           
========================================
  Files           56       56           
  Lines          804      804           
========================================
  Hits           334      334           
  Misses         470      470           
Flag Coverage Δ
unittests 41.54% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
lib/utils/time_since.dart 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.