pppws Posted January 7, 2018 Share Posted January 7, 2018 hey, maybe a super dumb question and i bet there is a super easy solution to this, but i can't find it and obviously i'm too stupid to google the right words… but how can i change the date format for from '4 weeks ago' to the acutal date? ('first saved by user' is a field created by me, so i can change it for this field). thanks for any help! Link to comment Share on other sites More sharing options...
Robin S Posted January 7, 2018 Share Posted January 7, 2018 In /site/ready.php: $wire->addHookBefore('ProcessPageLister::execute', function(HookEvent $event) { $lister = $event->object; $lister->nativeDateFormat = 'd.m.y'; }); See here for the format options: https://processwire.com/api/ref/datetime/date/ 7 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now