date/time problem
date/time problem
In my article template, i'm using the sample one, i have {DATE_ARTICLE} and (TIME_ARTICLE} in there and I still get the current date/time instead of those of the article. How do I go about fixing this? thanks.
Matt
Matt
include/inc_conf/conf.template_default.inc.php
include/inc_conf/conf.template_default.inc.php
and in:$template_default["date"]["language"]="EN";
include/inc_conf/conf.template_default.inc.php
and// date and time formatting
$template_default["date"]["language"] = "DE"; // DE=German, IT=Italian, FR=French
$template_default["date"]["long"] = "l, j. F Y"; // (Monday, 1. October 2003)
$template_default["date"]["medium"] = "D, j. M y"; // (Mon, 1. Oct 03)
$template_default["date"]["short"] = "Y/m/d"; // (2003/12/25)
$template_default["date"]["article"] = "Y/m/d"; // (2003/12/25)
$template_default["time"]["long"] = "H:i:s"; // 15:25:45
$template_default["time"]["short"] = "H:i"; // 15:25
$template_default["news"]["date_language"] = "DA"; // DE=German, IT=Italian, FR=French, ES = Spanish, DA = Danish, NO = Norwegian
$template_default["news"]["date_format"] = "Y/m/d: "; //if empty -> no Date
http://www.studmed.dk Portal for doctors and medical students in Denmark
The I dont remember....
Have you used the search function on this site?
Have you used the search function on this site?
http://www.studmed.dk Portal for doctors and medical students in Denmark
If you see
content.func.inc.php
you have:
so try to change:
content.func.inc.php
you have:
So it should be using:$content["all"] = str_replace('{DATE_ARTICLE}', international_date_format($template_default["date"]["language"], $template_default["date"]["article"], $content["article_date"]), $content["all"]);
$template_default["date"]["article"] = "Y/m/d"; // (2003/12/25)
Should use the same$content["all"] = str_replace('{TIME_ARTICLE}', date($template_default["time"]["short"] , $content["article_date"]), $content["all"] );
so try to change:
$template_default["date"]["article"] = "Y/m/d"; // (2003/12/25)
http://www.studmed.dk Portal for doctors and medical students in Denmark
when i make that first change only,
i get an error:
Parse error: parse error, unexpected '=' in /home/anteyet/public_html/aenergy/include/inc_front/content.func.inc.php on line 357"
so that doesn't seem to work thanks for all the help by the way
$template_default["date"]["article"] = "Y/m/d"; // (2003/12/25)
i get an error:
Parse error: parse error, unexpected '=' in /home/anteyet/public_html/aenergy/include/inc_front/content.func.inc.php on line 357"
so that doesn't seem to work thanks for all the help by the way
NO NO NO
If you want to change time format you need to change:
to eg:
d/m/Y gives you: day/month/year
like: 24/12/2004
For other times variables see: http://dk.php.net/manual/da/function.date.php
If you want to change time format you need to change:
you need to change "Y/m/d"$template_default["date"]["article"] = "Y/m/d"; // (2003/12/25)
to eg:
where:$template_default["date"]["article"] = "d/m/Y"; // (2003/12/25)
d/m/Y gives you: day/month/year
like: 24/12/2004
For other times variables see: http://dk.php.net/manual/da/function.date.php
http://www.studmed.dk Portal for doctors and medical students in Denmark