By Fidel Carrera on Sunday, 18 March 2018
Posted in General
Replies 6
Likes 0
Views 468
Votes 0
Hey there,

I have tried to update my version of the user.php file to reflect the new changes from the latest ES but I cant seem to make the users last seen work.

Any help would be greatly appreciated.

Thanks in advance for your help
Found it, now I just need to change the format to show actual date and time
·
Sunday, 18 March 2018 01:48
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for getting back to us you found the solution.

Keep us update if you need any assistance on this in the future.
·
Sunday, 18 March 2018 11:16
·
0 Likes
·
0 Votes
·
0 Comments
·
I am unable to figure out how to change "2 days ago" to "March 7th 2018 3:30PM"

Any way for me to achieve this?
·
Tuesday, 20 March 2018 03:26
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

You can apply codes below to shown date instead of time lapse on your user.php files. You can change 'DATE_FORMAT_LC4' based on your time settings.

[gist type="php"]
<?php echo JText::_('COM_EASYSOCIAL_PROFILE_LAST_SEEN');?>, <strong><?php echo ES::date($user->getLastVisitDate())->toFormat('DATE_FORMAT_LC4'); ?></strong>
[/gist]

Please give it a try and see how it goes.
·
Tuesday, 20 March 2018 12:36
·
0 Likes
·
0 Votes
·
0 Comments
·
You're the best
·
Friday, 23 March 2018 02:24
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for updating Fidel, glad that your issue is resolved now.
·
Friday, 23 March 2018 10:28
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post