Elxis CMS Forum

Support => General => Topic started by: ROUBOS on May 25, 2011, 03:20:35

Title: Date Inline module displays text [SOLVED]
Post by: ROUBOS on May 25, 2011, 03:20:35
Hi,
I placed the Date InLine module using the following code:
<?php elxLoadModule('mod_dateinline', -2); ?>

and instead of displaying the date, I get: A e B Y

any thoughts?

EDIT>> even Bubbles does not work, or the weather module. Could this be the same issue for all?
Title: Re: Date Inline module displays text
Post by: datahell on May 25, 2011, 10:22:56
You don't need a module to display a date...

You can use pure php:
<?php echo date('l d F Y'); ?>

Or Elxis 2009.x date function:
<?php echo mosFormatDate(date('Y-m-d H:i:s'), "%A %e %B %Y"); ?>

For Elxis Nautilus:
<?php echo eFactory::getDate()->formatTS(0, "%A %e %B %Y"); ?>

Title: Re: Date Inline module displays text
Post by: nikos on May 25, 2011, 10:24:02
Yes it is true with this you mentioned about module date_inline and i must fix it. If you let in module parameters the default one without to select other options, it will display date normally.

Bubles and weather module have not any relation with module date_inline.
Title: Re: Date Inline module displays text
Post by: ROUBOS on May 25, 2011, 12:04:49
thank you