Marcin So?tysiak olga.pl wrote:
> say today is 27 Sep 2001
>
> I add an article to Promo category and set approval stardate: today,
> enddate: future (no matter). $promo object is not created (mgd_errstr =
> MGD_ERR_OK). But whet I set stardate in future everything works fine but
> the point is that articles should appear only between start and end dates.
You mean if you don't set the enddate the object is not created yet
the errstr says it's OK?
> BTW: date formating object properties dont work when you set locale:
> <?
> setlocale ("LC_TIME","pl_PL");
> priint $object->aldate;
> ?>
> result ie.: 27 September 2001 (should be 27 Wrzesien' 2001, of course :-)
That's correct. Well it isn't correct but your statement is correct.
Date formatting codes are hard-coded at the moment, you can use
$object->date and the PHP date formatting functions.
Emile
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]