You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The helper method of your gem it's showing me this:
1 year, 11 months, and 5 days
But the thing is that the amount of days is wrong. The amount of real time is:
1 year, 11 months, 3 weeks and 5 days
So your method should say instead:
"1 year, 11 months, and 26 days"
Your method should convert the amount of ignored weeks (because the user simply doesn't want to see the word "weeks" in the returned string") into days (the user wants to see the word "days") and then add all of them (3 weeks x 7 days/week = 21 days) with the rest of the days (5 days), to return a total of 26 days. That's a simple matter of logic.
The fact that I only need the years, months and days, that doesn't mean that I ALSO want a wrong amount of days. I don't want that. I have never decided that. I want to see reflected the difference of time in years, months and days. That's all. But not removing real time and not returning a wrong amount of time.
The text was updated successfully, but these errors were encountered:
If I call for example:
The helper method of your gem it's showing me this:
1 year, 11 months, and 5 days
But the thing is that the amount of days is wrong. The amount of real time is:
1 year, 11 months, 3 weeks and 5 days
So your method should say instead:
"1 year, 11 months, and 26 days"
Your method should convert the amount of ignored weeks (because the user simply doesn't want to see the word "weeks" in the returned string") into days (the user wants to see the word "days") and then add all of them (3 weeks x 7 days/week = 21 days) with the rest of the days (5 days), to return a total of 26 days. That's a simple matter of logic.
The fact that I only need the years, months and days, that doesn't mean that I ALSO want a wrong amount of days. I don't want that. I have never decided that. I want to see reflected the difference of time in years, months and days. That's all. But not removing real time and not returning a wrong amount of time.
The text was updated successfully, but these errors were encountered: