Jump to:

23491 Posts in 18996 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » function "xx hours ago" is way wrong...

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 280 Views
  • Futureweb
    Community Member
    232 Posts

    function "xx hours ago" is way wrong... Link to this post

    Hi there,

    I have a UK based (GMT) server, which I'm using for a NZ site. I've adjusted the time of the server using .htaccess.
    (php_value date.timezone Pacific/Auckland)

    Looking at records in the database, all the times saved are correct in NZ time, but when I use the 'ago' function in the CMS, it says things were created 16 hours ago, when they were in fact created a few minutes ago.

    I don't understand where the 16 hour difference is coming from, or how to correct it


Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.