Problems, need help? Have a tip or advice? Post it here.
4 posts Page 1 of 1
Hello, I'm new to CouchCMS, maybe this is a silly question, but i have an issue when posting new entries for a blog or just by posting any page on the site, I did the tutorial, but when I post something, the date of the post is one day in the future, for example, I posted something today: 01/11/2016 - but the date of the publication shows 02/11/2016, I live in México, not sure if that is why the date is wrong.

Thank you very much.
Hi :)

Please edit your 'couch/config.php' file and set your region's correct time-zone in the following setting -
// Your Time Zone
// Example values (note how :15, :30, :45 will be entered as .25, .5 and .75 respectively):
// +12.75 New Zealand (UTC+12:45)
// +8.75 Australia (UTC+08:45)
// +5.5 India (UTC+05:30)
// +1 Germany (UTC+01:00)
// 0 United Kingdom (UTC±0)
// -2 Brazil (UTC-02:00)
// -4.5 Venezuela (UTC-04:30)
// -6 United States (Central Time) (UTC-06:00)
// -8 United States (Pacific Time) (UTC-08:00)
define( 'K_GMT_OFFSET', +5.5 );

I think for Mexico the setting should be as follows -
define( 'K_GMT_OFFSET', -6 );

Hopefully that should rectify the issue. Try creating a new page to verify.

N.B. Please notice that only all new pages created after this change will show the modified date. The existing ones with the wrong date will need to get their dates corrected manually.

Hope it helps.
trendoman wrote:
KK wrote: N.B. Please notice that only all new pages created after this change will show the modified date. The existing ones with the wrong date will need to get their dates corrected manually.


Good to mention :)

Also, @irvingarmenta, if the number of pages is too big to manually adjust date - there might be a code somewhere in forum for that or you can ask me to try sketch a new one. Saludos!
Join COUCH:TALK channel here https://t.me/couchcms_chat
Ryazania — a framework to boost productivity with Add-ons viewtopic.php?f=2&t=13475
Support my efforts to help the community https://boosty.to/trendo/donate
Oh, great then!, thanks a lot for your help!

Saludos desde México :)
4 posts Page 1 of 1
cron