Open ionutrazvanionita opened 7 years ago
As a workaround, you can do avp_db_query("SELECT CAST(utc_date() AS CHAR)"...)
for now.
And also users can do avp_db_query("select DATE_FORMAT(UTC_TIMESTAMP(),'%Y%m%d')", "$avp(utc)");
for formatted date in utc format
When fetching data from database OpenSIPS does not preserve the format. As an example the query
select utc_date()
will return in mysql a date in the following format2017-04-24
whereas in OpenSIPS the querywill print the date in the following format
uTC: 1492981200