Hey guys,
I read somewhere on the forum that you were going to fix the issue with the module comments time in the new version. However, it still shows "46 years ago" for all comments. It is quite embarrassing :))
Could you please fix this bug.
Please share site admin credentials to check and fix this issue.
The issue arises from
wplms/includes/func.php line number 230
$time_passed = human_time_diff(strtotime(get_comment_date('d.m.Y').' '.get_comment_time()),current_time('timestamp'));
however the main point for concern is that it occurs only on few cases, for rest it works absolutely fine.
Ok, I see.
My login credentials are:
https://www.pro-smm.academy/wp-admin
ekaterina@prosmm
Vikusya85#!ProSmmAcademy
I tried to add the fix but I am not sure where to check the issue to confirm if the issue was fixed.
I changed the following code
$time_passed = human_time_diff(strtotime(get_comment_date('d.m.Y').' '.get_comment_time()),current_time('timestamp'));
to
$time_passed = human_time_diff(strtotime(get_comment_date('d-m-Y').' '.get_comment_time()),current_time('timestamp'));
Also check if the code is updated or not, if not then please update it your self.
1) go to wp-admin->appearance->editor->wplms theme->func.php
2) search for "human_time_diff" function and change the code (If not changed).
3) please check if the issue is resolved.
Hi!
I checked the code and it is well saved. I tried to resave it once again. However, the issue is still there even though I cleared cache.
Here is a link to the lesson where I have several comments with "46 years ago": https://www.pro-smm.academy/unit/vvedenie-kak-sozdat-stranitsu-v-facebook/?id=2143
I have added the fix on your site and tested it. Now its working fine. Please check.
Same is now added in our site and will be released in our next update.