Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SOLVED Date time errors
#1
Getting this all over my pages?

Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /plugins/news_manager/inc/functions.php on line 18

Line states:
Code:
   if ($all || $item->private != 'Y' && strtotime($item->date) < $now)

see peteberry.co.uk for examples
Pete

Chefbyte Services
Reply
#2
(2020-04-02, 21:12:54)chefbyte Wrote: Getting this all over my pages?

How did you resolve it the last time?

Have you made any changes to your installation since then? If not, has your hosting provider made changes?
--
Nick.
Reply
#3
(2020-04-03, 01:03:12)hameau Wrote:
(2020-04-02, 21:12:54)chefbyte Wrote: Getting this all over my pages?

How did you resolve it the last time?

Have you made any changes to your installation since then? If not, has your hosting provider made changes?

I did not solve it last time as i neglected the site for a long time due to illness.

Just changed the timezone in GS settings to GMT yet again and lo and behold it now works?

Case closed me thinks
Pete

Chefbyte Services
Reply
#4
(2020-04-04, 03:07:49)chefbyte Wrote:
(2020-04-03, 01:03:12)hameau Wrote:
(2020-04-02, 21:12:54)chefbyte Wrote: Getting this all over my pages?

How did you resolve it the last time?

Have you made any changes to your installation since then? If not, has your hosting provider made changes?

I did not solve it last time as i neglected the site for a long time due to illness.

Just changed the timezone in GS settings to GMT yet again and lo and behold it now works?

Case closed me thinks

Spoke too soon, its back this morning Sad
Pete

Chefbyte Services
Reply
#5
(2020-04-04, 18:01:42)chefbyte Wrote: Just changed the timezone in GS settings to GMT yet again and lo and behold it now works?

Do you mean in gsconfig.php or the Settings page in the Admin interface?

(2020-04-04, 18:01:42)chefbyte Wrote: Spoke too soon, its back this morning Sad

Looking in the Web Archive, the problem started in 2017 – it was fine in June, but broken in September.

A lot has happened since then and I'd recommend backing up the site and reinstalling with current versions of GS and plugins.  If you really don't want to do that, you'll have to manually update (GS + plugins), but be extra careful about making sure that you have up-to-date versions of gsconfig.php and .htaccess (both in the site root directory).
--
Nick.
Reply




Users browsing this thread: 1 Guest(s)