QuantumBadger / QuantumBadger/RedReader

Durations/ages near a month boundary are formatted incorrectly

Open
#849 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bug
Dominant language
Java
Stars
2.7k
Forks
527
Avg merge
20d 10h
Merged PRs (30d)
3

Description

A user on reddit has reported a weird issue with date formatting, where the parent comments seemed to be less old than the child comments, see screenshot attached.

I could repro this locally, it looks like Joda might be doing something unexpected in PeriodFormatterBuilder.

Screenshot

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the month-boundary age-formatting problem described in the issue, then inspect the date-formatting path that uses Joda's PeriodFormatterBuilder. Compare parent and child comment ages around a month boundary; done means the displayed ordering and durations are correct in that case.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.