Changes between Version 6 and Version 7 of GenFAQ


Ignore:
Timestamp:
Feb 25, 2011, 1:19:28 AM (14 years ago)
Author:
IgorL
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GenFAQ

    v6 v7  
    3636== '''''How can I change the time zone in Dolphin?''''' == 
    3737 
    38 You may know that all actions in Dolphin have their date/time specifications, such as Spy events, Blog and Forum posts, Chat messages, etc. All these events are stored in a MySQL database which by default uses the server time zone for them. But your web server may be located in a different country, so it may be necessary to adjust Dolphin time according to your (admin) location.[[BR]] 
     38You may know that all actions in Dolphin have their date/time specifications, such as Spy events, Blog and Forum posts, Chat messages, etc. All these events are stored in a MySQL database which by default uses the server time zone for them. But your web server may be located in a different country, so it may be necessary to adjust Dolphin time according to your (admin) location. 
     39 
     40You will also need to change the default time zone for PHP so it could correspond to MySQL time zone. So here's how you can do it:[[BR]][[BR]][[BR]] 
     41 
     42'''For PHP''' 
     43 
     44Edit the file {{{inc/header.inc.php}}}.[[BR]] 
     45Input this line: 
     46{{{ 
     47date_default_timezone_set( timezone_identifier ); 
     48}}} 
     49after 
     50{{{ 
     51mb_regex_encoding('UTF-8'); 
     52}}} 
     53 
     54There are a plenty of ''timezone_identifiers'', but to make it simple, I will show only those that use GMT offsets. 
     55 
     56It's strange but it's true that PHP uses these offsets in a different way: a negative offset becomes positive and on the contrary. 
     57 
     58For example, if you live in the ''US/Central'' time zone, your GMT offset is supposed to be "-6", but you need to specify '''"Etc/GMT+6"''' as the '''''timezone_identifier''''', and if you live in ''!Europe/Berlin'' timezone, your GMT offset is supposed to be "+1" but you need to specify '''"Etc/GMT-1"'''. Those who live in ''London'', should specify '''"Etc/GMT"''' ('''please mind the quotation marks'''). 
     59 
     60Those who live in time zones with fractional GMT offsets, will need to use their areas timezones in this format: '''"!Asia/Rangoon"''', '''"!Australia/Adelaide"''', etc. 
     61 
     62The list of supported time zones can be found [http://php.net/manual/en/timezones.php here].[[BR]][[BR]][[BR]] 
     63 
     64'''For MySQL''' 
     65 
    3966You will need to change the time zone offsets in 3 files: for Dolphin itself, for Orca and for Ray. 
    4067 
     68The ''offset'' parameter should specify your time zone offset in comparison to GMT time, for example: +6:00, -7:30. And these offsets are already the ones we got used to. 
     69 
    4170Here are these files:[[BR]] 
    42 ''Note: the offset parameter should specify your time zone offset in comparison to GMT time, for example: +6:00, -7:30, etc.''[[BR]][[BR]] 
    43711) For Dolphin:[[BR]] 
    4472edit {{{/inc/classes/BxDolDb.php}}}[[BR]] 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.
Fork me on GitHub