This patch allows to have dates returned in a language
other than English. It does so by calling
Date::Manip::DateInit inside Slash::Utility::timeCalc.
The language is set using a new entry in the vars
table, called datelang. The value most be in a format
recognized by Date::Manip e.g. Italian, English,
German, etc. Only the languages supported by
Date::Manip can ofcourse be used.
It may run into trouble if the database engine doesn't
return date in English format, something that is not
very common and I believe not supported at all on
MySql. In this case, you would just have to set a
different default language. You could, ofcourse, put
extra code to handle this situation.
Log in to post a comment.