ap_human_time always compare $time with a GMT current_time

Solved4.58K viewsIssuesbug
0

Hello,

 

The ap_human_time function compares $time with current_time( ‘timestamp’, true ).

 

This means that the local $time is being compared against a GMT current time instead of the local current time.

 

current_time( ‘timestamp’, true ) in ap_human_time needs to be changed to current_time( ‘timestamp’, false ).

 

Thanks,

 

@awijasa

Question is closed for new answers.
selected answer
1

Hello @awijasa,

Thanks for reporting. I need to add test case for verifying ap_human_time() then I will check this issue.

You are viewing 1 out of 2 answers, click here to view all answers.