KnpLabs / KnpLabs/KnpTimeBundle

About 'duration' filter i think better to use 'number_format' instead 'floor' php function

Open
#204 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
625
Forks
103
PR merge metrics
No merged PRs in 30d

Description

Many users of bundle will want to see '2.59 minutes' for 179 seconds instead of '2 minutes' :)

Cheers !

Contributor guide

No contributing guide indexed for this repository

Research direction

No file or test is named in the issue. Locate the duration filter implementation and its existing tests, then verify the requested formatting for 179 seconds produces "2.59 minutes" rather than "2 minutes"; done means the behavior is covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.