.oO(RichardODreamweaver)
>OK - think I've sussed it.
>
> All date fields will be in VARCHAR, using the Time() function to store as
>UTC/GMT seconds.
>
> The user can choose a preference for Timezone (e.g. GB, TCU, Etc/GMT+1)
>
> Also, the user can select a time format which is strored.
>
> On login, these preferences are stored as Session variables and used on each
>page to set the timezone.
>
> putenv ("TZ=".$_SESSION['timezone'])
You should use date_default_timezone_set() instead:
| Note: Since PHP 5.1.0 (when the date/time functions were rewritten),
| every call to a date/time function will generate a E_NOTICE if the
| timezone isn't valid, and/or a E_STRICT message if using the system
| settings or the TZ environment variable.
http://www.php.net/manual/en/functio...mezone-set.php
Micha