Wrong date on featured news widget?
Home › Forums › GovIntranetters › Wrong date on featured news widget?
- This topic has 10 replies, 3 voices, and was last updated 7 years, 5 months ago by David Butt.
-
AuthorPosts
-
-
1 Jun 2017 at 10:54 #3114David ButtParticipant
The last two news items I’ve published have 16 September 2016 showing as the date on the homepage – using the featured news widget – rather than the date they were published. The dates show correctly when you open either item to show the individual details. There’s a screen dump attached.
I’ve deleted the cache (we use WP Super Cache) and also experimented with cache duration in the widget – now set back to ‘0‘.
We’ve just upgraded from 4.34.8.1 to 4.34.12.2 – which happened immediately before the publication of the first item showing the issue. We’ve also upgraded ACF pro from 5.5.9 to 5.5.14.
Am I missing anything obvious? Probably.
Cheers
Attachments:
You must be logged in to view attached files. -
2 Jun 2017 at 11:57 #3117MattyMember
Hi David
I think this highly unlikely but what does the publish date say in the back end of the news items?
-
2 Jun 2017 at 12:05 #3118David ButtParticipant
Hi Matty – thanks for having a think about this. Unfortunately, it shows the right date and time in the backend. So the backend thinks nothing’s wrong – only the homepage is showing the date wrong. Even the frontend item page shows it right.
Cheers
David
Attachments:
You must be logged in to view attached files. -
2 Jun 2017 at 12:07 #3120MattyMember
Ah okay so the issue is limited to the news feature widget only and everywhere else it displays correctly?
-
2 Jun 2017 at 12:11 #3121David ButtParticipant
Hi Matty – yes, that’s right. That’s why I’m *really* scratching my head.
D
-
2 Jun 2017 at 12:17 #3122MattyMember
Definitely a head scratcher.
I’m just wondering if you’d be able to turn back ACF to the previous version you had installed before the upgrade?
May not be but there was an issue in the past regarding dates and would be keen to know if it is related
-
2 Jun 2017 at 12:49 #3123David ButtParticipant
Hi Matty – another good thought.
So, I’ve just got the ‘old’ ACF plugin from the zip file and put it back on the site, replacing the ‘current’ ACF plugin folder. WordPress then reported it as having 5.5.9 installed rather than 5.5.14. Still no joy, I’m afraid. I’ve now swopped it back with the latest version.
And odder…
You also made me think. So I did the same with the feature news widget – restoring the old version back. And again, it still showed the wrong date…and I checked I’d cleared the cache…and I swapped it back.
But worse…that made me think even more.
I’ve solved it but I don’t know why it worked. By changing the clock date format on the server – we run it on Windows Server. I changed it from MM/D/YYYY (I didn’t build it, OK?) to DD/MM/YYYY. A new news item then worked perfectly leaving the old two as wrong. I’m not sure if this actually did it because that makes no sense as it was right and then wrong without the date format having been changed on the server.
Who knows? But thanks for getting involved.
D
-
2 Jun 2017 at 13:38 #3124MattyMember
I think we have encountered a glitch in the matrix there David. Glad to hear it’s working now though
-
2 Jun 2017 at 13:48 #3125David ButtParticipant
So, ignore the last bit. Changing the clock date didn’t make the difference. There was another change I hadn’t considered.
We’d also just started using the spots widget. We’d never used it before. Put two spots in two posts – worked perfectly (thrilled) but those two posts then had the wrong date. Remove the spots from the posts and date corrects itself. Put either spot back in and the date goes haywire – but only in the featured news widget…
Go figure.
Is anyone else using spots?
-
10 Jun 2017 at 15:18 #3135Luke OathamKeymaster
There are some updates coming soon in v4.35 that might help with the news widget.
-
12 Jun 2017 at 09:20 #3147David ButtParticipant
Hi Luke –
You’ve sorted it.
Thanks (again).
D
-
-
AuthorPosts
- You must be logged in to reply to this topic.