This code will show the date of publishing like: 4:30 10/7/2015

I want the date be like:

2 hours and 15 minutes ago

enter image description here

this setting is on showcase modules ("news show pro GK4" in this case) for showing your recent articles with the date of publishing.

  • To get only hours and minutes, change the value to H i – Lodder Oct 5 '15 at 11:32
  • but " H:i " will show it like : " 01:32 " I want " X hours ago " – Brainiac Oct 5 '15 at 11:38
  • Try H hours and i minutes ago – Lodder Oct 5 '15 at 11:43
  • where is this setting? You will need to use a template override – jdog Oct 7 '15 at 21:11
  • This setting is on showcase modules, for showing your recent articles, in this case "News show pro GK4" where this date appears to show the publish date of your article where I want it to show the relative time of it. – Brainiac Oct 8 '15 at 8:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.