Development

#1514 (distance_of_time_in_words doesn't work on 2 days (48*60*60))

You must first sign up to be able to contribute.

Ticket #1514 (closed defect: fixed)

Opened 6 years ago

Last modified 6 years ago

distance_of_time_in_words doesn't work on 2 days (48*60*60)

Reported by: halkeye Assigned to: fabien
Priority: major Milestone: 1.0.3
Component: helpers Version: 1.0.2
Keywords: DateHelper Cc:
Qualification:

Description

distance_of_time_in_words(0, 24*60*60); // returns about 24 hours distance_of_time_in_words(0, 48*60*60); // returns 1 day

I have a patch to fix it

Attachments

symfony.datehelper.patch (501 bytes) - added by halkeye on 02/27/07 23:08:04.

Change History

02/27/07 23:08:04 changed by halkeye

  • attachment symfony.datehelper.patch added.

04/18/07 13:18:17 changed by notjosh

a simple < is (to me) more obvious than the <=

it's not a huge difference, but i guess i'm pedantic.

04/18/07 17:03:40 changed by halkeye

  • priority changed from minor to major.
  • version changed from 1.0.0 to 1.0.2.

I'm not really picky as long as long as its fixed..

its such an easy fix i can't belive its been 2 months.

04/18/07 18:43:52 changed by fabien

  • milestone set to 1.0.3.

04/18/07 18:44:40 changed by fabien

  • status changed from new to closed.
  • resolution set to fixed.

(In [3815]) fixed distance_of_time_in_words() helper (closes #1514)

04/18/07 18:45:14 changed by fabien

(In [3816]) fixed distance_of_time_in_words() helper (closes #1514)