Support ⇒ Troubleshootings ⇒ Setting DST ⇒ Community Forums ⇒ CPG Dragonfly™ CMS
Forum IndexTroubleshootings

Setting DST Reply to topic


How exactly do I set DST on my site? In forums admin I can set my timezone - is DST then applied automatically?

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):


Never did get an answer to this...

On a similar note - how do I set the default timezone for new members of my site? Do I just change the value for anonymous? And to change all existing members do I just do it in phpmyAdmin? Do I have to manually change everyone's DST setting every 6 months?

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):


I can't even remember how it works in v9 Big grin
In v10, user profiles have their timezone and DST setting.
Forums time zones were moved site wide, as it only worked module wide.

On the mean time we added a new server timezone, only used for logs atm I believe.

New members needs to set their timezone and DST, and i pretty sure that this is how it works in any other social, cms, portal, etc website.

If you know what you are doing, change not-registered visitors timezone and DST by modifyng user id 1.

.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
CloudLinux / Apache 2.4 LSAPI / MySQLi 5.6 / PHP 5.6 / DCVS


OK, thanks Nano. I'll change user id 1 (and change everyone else too - it's a local community site so they *should* all be on the same timezone anyway). Is there a way of changing the default for new members? Even in the code?

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):


Not in v9 Confused

.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
CloudLinux / Apache 2.4 LSAPI / MySQLi 5.6 / PHP 5.6 / DCVS


OK, thanks.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):


However you can set timezone and DST to be visible at registration level.
Admin -> users settings -> fields.

.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
CloudLinux / Apache 2.4 LSAPI / MySQLi 5.6 / PHP 5.6 / DCVS


Perfect, thanks!

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):


how do I set the default timezone for new members of my site?


I don't know if this is a solution that can help you, but it is a little trick that my webhost mentioned to me when I had a time related issue on one of my sites. To set the site time different from the server time, I added this to the bottom of the htaccess file. It also sets nicely the default time zone of a site and of different sites on the same server:
php_value date.timezone "America/New_York"


The available time zones that can be used are located here:
http://php.net/manual/en/timezones.php

Hope this helps.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Devuan ascii / Apache 2.4.2x / MariaDB 10.x / PHP 7.0x / DF 9.8 (updated)


As I recall, that will only work if PHP is not running as CGI/FastCGI (in which case you will get a 500 error).

DonationsPro for DragonflyCMS & SMF

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):


PHP >= 5.1.0

The timezone identifier, like "UTC" or "Europe/Lisbon"

can be set by adding this line to your cmsinit.inc file

date_default_timezone_set('UTC'); // change utc to your desired timezone


However Dragonfly 9+ does Not use " timezone identifiers"

This is the reason I use a customized version of dragonfly.
I have several Corporate customers.
That made using " timezone identifiers" through out the cms a mandatory requirement.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
9.21

All times are UTC


Jump to: