Forum
Wrong Timezone
Hi all,
In Perch Admin, when I edit content, the Last updated field is always an hour ahead... Any ideas why? The timezone is set to UTC.
Thanks.
Hi all,
In Perch Admin, when I edit content, the Last updated field is always an hour ahead... Any ideas why? The timezone is set to UTC.
Thanks.
The last login time works fine btw...
What's your server's clock set to?
My server clock is correct. As I said, when I login to Perch it displays the correct time in the Manage Users section. However, when I modify a region, the time is always an hour ahead...
When you say correct, you mean that it's set to UTC also?
Yes. My Perch installation is set to UTC but for some reason the Editing 'PAGE NAME' Page page displays the wrong time. I'm at a loss to what the problem is...
I can’t find anything wrong with the server time...
I think Perch uses the server's time by default. If the server's timezone is set to UTC, then UTC should be used.
Have you tried setting the timezone in your
perch/config/config.php
?Hi Hussein,
I have so far tried everything mentioned but nothing seems to do the trick.
As I said above, the date is strangely correct in the Manage Users page to show when the user last logged in. But is an hour ahead in the Edit Regions pages.
It’s not causing any problems, I just need to remember that it’s an hour out.
Oh! And I have code on my pages that show the last time that page was updated and that shows the correct date and time. Just not correct within Perch admin.
The page modified time and the user last login are both set in the same way (basically using
date('Y-m-d H:i:s')
).They both show the same, accurate timestamp here for me. Can you post your full diagnostic report?
I understand they should both be set in the same way. However, they are not. It might be something really stupid that I messed up but I can't see it.
They are set the same way. I'm not sure why you're seeing an hour difference, but I can't reproduce that behaviour.