By alex shvarts on Saturday, 12 December 2015
Replies 6
Likes 0
Views 818
Votes 0
hello can you please assign me on how to set the notifications to show the date and time.

currently i am only seeing 15:22 please see attached screenshot

i want to show December 2, 2015 3:40pm how can i set this?
Hey Alex,

It should actually be showing the "time ago" syntax rather than just the hour / minute as shown in my screen shot here, http://screencast.com/t/fNPTFjH9

Did you customize the theme file to display the hour / minute ?
·
Saturday, 12 December 2015 18:37
·
0 Likes
·
0 Votes
·
0 Comments
·
hi yes i had some one customize and its an issue. can you please tekk me which file controls this and perhpas you can attached the file with the original code so i can compare and see what the change was to resolve.

thanks
·
Monday, 14 December 2015 06:46
·
0 Likes
·
0 Votes
·
0 Comments
·
hello, i have actually found the file and the code in /components/com_easysocial/themes/wireframe/notifications/popbox.notifications.php

your standard code is <small><?php echo $notification->since; ?></small> what can i replace this with to show it as the date and time of the notification example mm/dd/year Hour:minute
12/12/2015 3:30pm
·
Monday, 14 December 2015 07:08
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Alex,

I am really sorry for the delay of this reply.

You can adjust the formatting by going to your /administrator/components/com_easysocial/includes/notifications/notification.php at line 275:
$item->since= FD::date($item->created)->toLapsed();
// change it to below as example.
$item->since= FD::date($item->created)->toFormat('l, d F Y');


Hope these help.
·
Monday, 14 December 2015 13:18
·
0 Likes
·
0 Votes
·
0 Comments
·
thank you for the reply. This is great now how can i show it this way as in the screenshot and use 12 hour format with AM and PM
·
Tuesday, 15 December 2015 01:55
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Alex,

I am really sorry for the delay of this reply.

Try the following format and see how it goes.
d/m/Y h:i A
·
Tuesday, 15 December 2015 17:09
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post