I use Vanilla in Austria and would like to change the timezone settings, as they appear wrong.
The 2nd thing is that i'd like to configure 0:00-24:00 timeframe in opposition to am/pm, so i wondered if there is an option to reconfigure this setting.
When users log in javascript sends their current time to the server to set the timezone. You should be seeing the correct times on your posts. If you aren't can you tell me what browser/version/os you are using?
To change the format of your times you can add the following to your /conf/config.php:
Time Zone Settings can be done in bootstrap.php in the Vanilla root.
// Make sure a default time zone is set if (ini_get('date.timezone') == '') date_default_timezone_set('America/Montreal'); Here you can find the list of timezones: http://us3.php.net/manual/en/timezones.php
Okay, I found the correct way to change your formats. They aren't a config option, but a language option. So you can put the formats for your dates in a language pack. If you just want to change the default language pack (en-CA) then do the following:
Comments
Would be nice to see some suggestions, thanx.
VanillaSkins.com Themes / Custom Themes / Design & Graphics for Vanilla
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •To change the format of your times you can add the following to your /conf/config.php: There are other config settings for date/time formats too:
Date.DefaultDayFormat
Date.DefaultYearFormat
Date.DefaultFormat
For all the options in date/time formats see strftime.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •It don't work for me...
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •VanillaSkins.com Themes / Custom Themes / Design & Graphics for Vanilla
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •// Make sure a default time zone is setif (ini_get('date.timezone') == '')
date_default_timezone_set('America/Montreal');
Here you can find the list of timezones: http://us3.php.net/manual/en/timezones.php
VanillaSkins.com Themes / Custom Themes / Design & Graphics for Vanilla
- Spam
- Abuse
- Troll
1 • Off Topic Insightful Awesome LOL •<?php if (!defined('APPLICATION')) exit();$Definition['Date.DefaultTimeFormat'] = '%H:%M';
$Definition['Date.DefaultDayFormat'] = '%e. %B';
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Could you tell me how can i translate months in french ?
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •http://github.com/vanillaforums/Garden/issues
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Thanx for help!
VanillaSkins.com Themes / Custom Themes / Design & Graphics for Vanilla
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Go the root of your forum folders -> open 'conf' -> open 'locale.php' -> the file needs to look like this:
<?php if (!defined('APPLICATION')) exit();$Definition['Date.DefaultTimeFormat'] = '%H:%M';
$Definition['Date.DefaultDayFormat'] = '%e. %B';
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •