Signature of some TimeHelper functions has changed

In the coming Release Candidate 4 (RC4) of CakePHP, two function signatures in the TimeHelper have changed so that they are no longer compatible with older versions (and so they may break your code). The function timeAgoInWords() has changed from:

function timeAgoInWords ($datetime_string, $return = false, 
                                   $backwards = false)


function timeAgoInWords ($datetime_string, $format = 'j/n/y', 
                                   $backwards = false, $return = false)

And the function relativeTime() has changed from:

function relativeTime ($datetime_string, $return = false)


function relativeTime ($datetime_string, $format = 'j/n/y', 
                              $return = false)

So, do not forget to check your code for calls to the aforementioned functions when you update to RC4!


One Comment

  1. Johnc330
    Posted July 29, 2014 at 12:37 pm | Permalink

    hello!,I like your writing so much! share we keep up a correspondence extra about your article on AOL? I require an expert on this space to resolve my problem. May be that is you! Looking ahead to look you. eabgeefgcfca

Post a Comment

Required fields are marked *

%d bloggers like this: