Setting the Timezone in PHP
Menu Setting the Timezone in PHP
 

Setting the Timezone in PHP

When setting transaction times Apache's mod_fcgid tells me that I need to set a timezone and that I cannot depend on the system's timezone settings.

date_default_timezone_set(string $timezoneId): bool

You can also use an INI setting to set this default.

A futher irony is that an Internet search revealed an error that failed to mention that a timezone needs to be declared ot there will be a server warning raised.

The Internet search turned up an AI solution

Top

Links

Top

References: - a note on these

  • date_default_timezone_set - https:// www.php.net/manual/en/ function.date-default-timezone-set.php
  • Apache mod_fcgid - https:// httpd.apache.org/ mod_fcgid/
  • PHP Date Functions - https:// www.php.net/manual/en/ ref.datetime.php

Site design by Tempusfugit Web Design -