App Connect Data Formatter Support Product Page
Solved
Formatting Dates not works
Reported 8 years ago
1
has this problem
8 years ago Michele - posted:
Hello,I'm trying to format dates using this tutorial, but not works (the date disappears):
www.youtube.com/watch?v=Gij7fBwcEPo
This is the code used:
{{date_news.formatDate("dd-MM-yyyy HH:mm")}}
The date in the MySQL table (engine MyISAM, field type: timestamp) is format in this way:
yyyy-mm-dd hh-mm (e.g. 2017-05-21 14:57:37)
In others webpages with traditional php format code, I'm usually used:
<?php echo(date("F d, Y", strtotime($row_rsNews['date_news']))); ?>
Also, in the browser "console" I receive these error:
Failed to load resource: the server responded with a status of 404 (Not Found)
{url}/dmxAppConnect/maps/dmxFormatter.js.map
Failed to load resource: the server responded with a status of 404 (Not Found)
{url}/dmxAppConnect/maps/dmxAppConnect.js.map
Replies
Replied 8 years ago
8 years ago Teodor Kuduschiev replied:
Hello Michele,
Please provide a link to your page, where we can check this.
Please provide a link to your page, where we can check this.
Replied 8 years ago
8 years ago Michele - replied:
Hi Teodor,
I sent you an email with the parameters to access to the hosting + mysql for the test/debug.
Thanks.
I sent you an email with the parameters to access to the hosting + mysql for the test/debug.
Thanks.
Replied 8 years ago
8 years ago Michele - replied:
upd (1): I just checked that the problem occurs only on Safari browser, on Chrome date formatting is ok.
upd (2): also, the problem occurs on IE11 browser (and previous), on Edge/Firefox is ok.
upd (3): I noticed that the hours are indicated one hour back (in my country now we have the European Summer Time).
upd (2): also, the problem occurs on IE11 browser (and previous), on Edge/Firefox is ok.
upd (3): I noticed that the hours are indicated one hour back (in my country now we have the European Summer Time).
Replied 8 years ago
8 years ago Michele - replied:
Hi Teodor... news about my problem with the "format date"?
Replied 8 years ago
8 years ago Teodor Kuduschiev replied:
Hi Michele,
We are working on the issue, and hopefully it will be fixed in the next update.
We are working on the issue, and hopefully it will be fixed in the next update.
Replied 8 years ago
8 years ago Michele - replied:
Ok, thanks.
Replied 7 years ago
7 years ago Michele - replied:
I've seen that you have fixed with the last update (1.1.0).
Thanks!
Thanks!