Cheap Web Space, Domain Name: |
Question: | Searching … |
Unfortunately nothing found on "".
from Ghana: +49 30 32 70 18 92, Fax (in Germany) +49 30 32 70 18 91
Skype: bitpalast
One moment please … your browser is loading the page.
Symptom
When you use date or time in PHP, a wrong time is displayed.
Cause
Bitpalace hosts customers in many time zones. It is not possible to set a default timezone for all customers. It is possible that the server timezone delivers a different value than what would be appropriate for your own location.
Solution
At the beginning of your PHP script, add the date_default_timezone_set()
command and set the timezone of your choice. Examples:
Alternative:
Alternatively you can set the timezone in your .htaccess file. If that works depends on your reverse proxy, web server and PHP configuraton. Entering the timezone setting into your PHP code as described above is the better choice, because it makes your code platform independent. Example for an entry in the .htaccess file:
php_value date.timezone 'Europe/London'
Overview of frequently asked questions
x0>
Additional Services |
---|
Starter Server: Affordable web server from 2.25 US$ () /month with PHP, database and many more
|
|
"Cheap Web Space": Affordable web space, cheap web server, low-cost webserver, low-price web servers: fast web server / small web server (cheap web space). Web server for private homepages / small website projects.
from Ghana: +49 30 32 70 18 92 • GmbH, Sensburger Allee 27, D-14055 Berlin (Germany)
Your purchase is tax-free, because you order from a non-EU country. © 2024 GmbH. All rights reserved. and the logo are registered trademarks of GmbH. For photo credits see imprint.