BlogHolder.ss:
$Date.FormatI18N(%e %b %Y)
Config:
i18n::set_locale('nl_NL');
i18n::set_date_format('dd-MM-YYYY');
setlocale(LC_ALL, 'nl_NL');
setlocale(LC_TIME, 'nl_NL.UTF-8');
date_default_timezone_set('Europe/Amsterdam');
should result in "17 Dec 2012"
instead i get an error: "Missing argument 1 for Date::FormatI18N()"
[Warning] Missing argument 1 for Date::FormatI18N(), called in /storage/web/public/sites/new.url.nl/framework/view/ViewableData.php on line 366 and defined
GET /blog/?flush=all
Line 149 in /storage/web/public/sites/new.url.nl/framework/model/fieldtypes/Date.php
a test on the server, using test.php
<?php
echo strftime("%e %b %Y");
does result in 17 dec 2012, so i think the server is set correctly..
is something wrong with this in SS 3.03?
i saw "dospuntocero" also had problems in SS 3, see the irc logs: http://logs.simon.geek.nz/index.php?date=2012-07-05
How do we fix this?
SOLVED:
Use $Date.FormatI18N('%e %b %Y')