close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Strict Standards: strtotime():

Thread began 1/10/2022 7:46 am by john70964 | Last modified 1/14/2022 1:01 pm by Ray Borduin | 395 views | 9 replies |

john70964

Strict Standards: strtotime():

Hi Ray,
I have stated to get a new error,
Strict Standards: strtotime(): We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead in /homepages/37/d415519235/htdocs/boatsforsalenow/boat-details.php on line 206

Strict Standards: date(): We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead in /homepages/37/d415519235/htdocs/boatsforsalenow/boat-details.php on line 206
12/17/2017

Any Ideas what may be causing this
Many Thanks
John

Sign in to reply to this post

Ray BorduinWebAssist

You have to define the default timezone in your php.ini file, or if you are happy with the default that is being selected, you can turn off strict standards messages in your php.ini file. This can probably be done in your admin control panel from your hosting company. You may need to contact them on how to set it since I'm not sure what hosting company and plan you are using. This isn't an issue with your php code, it is an issue with the hosting server itself.

Sign in to reply to this post
Did this help? Tips are appreciated...

john70964

Thanks Ray
I am still trying to get answers from the hosting company. Usually the support is excellent but at the moment it is not so.

I found that strtotime(); had been embedded in two field codes. I removed these and the problems disappeared.

I wonder if they will return?
Regards

John

Sign in to reply to this post

Ray BorduinWebAssist

It is going to return any time you are referring to dates since the timezone isn't set on the server, your php code won't know what time zone it should be using. That is what the message means.

Sign in to reply to this post
Did this help? Tips are appreciated...

john70964

Thanks Ray
I will let you know how I get on.

Sign in to reply to this post

john70964

Eventually I deleted the date field and so far no problems.
I have been using these servers for years and never a problem suddenly there is.
I am told nothing is changed to cause this but the only way to fix the problem is have a dedicated server.
Thanks for your help

John

Sign in to reply to this post

Ray BorduinWebAssist

That doesn't sound right... probably the person you talked to at the hosting company didn't know what they were talking about. Do you have cpanel or pesk access?

You could just set it manually at the top of any page that needs it like:

php:
<?php

date_default_timezone_set
('America/Los_Angeles');
?>
Sign in to reply to this post
Did this help? Tips are appreciated...

john70964

Hi Ray,
They do not use cpanel or pesk but I could certainly set it manually in needed pages.

Would <?php
date_default_timezone_set('GMT');
?>
Be OK?

Sign in to reply to this post

Ray BorduinWebAssist

https://www.php.net/manual/en/timezones.php

Sign in to reply to this post
Did this help? Tips are appreciated...

john70964

Will try
<?php
date_default_timezone_set('Europe/London');
?>
Many thanks

John

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...