Skip to content

Fix date formatter - #1089

Merged
alperozturk96 merged 2 commits into
mainfrom
fix/date-formatter
Oct 23, 2026
Merged

alperozturk96 merged 2 commits into
mainfrom
fix/date-formatter

Conversation

@daniele-verducci

Copy link
Copy Markdown
Contributor

Fixed date formatter: for the minutes, it was passing only quantity with no formtArgs so always reported %dm instead of the values in minutes (i.e.: 5m).
This can be see e.g. in the Notes app, for a recently created note:
image

I also fixed tests: they computed the resulting value in the same way as the code they tested, so they didn't fail (relative minutes test was returning %dm, tested against %dm and thus not failing)

🏁 Checklist

  • ⛑️ Tests (unit and/or integration) are included or not needed
  • 📅 Milestone is set
  • 🌸 PR title is meaningful (if it should be in the changelog: is it meaningful to users?)

🤖 AI (if applicable)

  • The content of this PR was partly or fully generated using AI

@codacy-production

codacy-production Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 0 duplication

Metric Results
Complexity 0
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@daniele-verducci daniele-verducci added the 3. to review Waiting for reviews label Oct 22, 2026
… code they tested, so they didn't fail (relative minutes test was returning %dm and not failing)

Signed-off-by: daniele-verducci <daniele.verducci@nextcloud.com>
…es in minutes (i.e.: 5m)

Signed-off-by: daniele-verducci <daniele.verducci@nextcloud.com>
@alperozturk96
alperozturk96 merged commit 333a5f8 into main Oct 23, 2026
15 checks passed
@alperozturk96
alperozturk96 deleted the fix/date-formatter branch October 23, 2026 06:18
@alperozturk96 alperozturk96 added this to the 0.35.0 milestone Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants