2016-07-13 32 views
0

Hilfe bitte ..... Was ist los?Ich habe ein Problem mit FormatDate in W2ui

In Linux oder Windows, Chrome oder Firefox

wenn in der Konsole, ich laufe:

w2utils.formatDate('2016-07-12', 'd/m/y'); 

Return 2016.11.07 (nicht 2016.12.07 !!!!) Ich bin in Argentinien (Zeitzone -3) Hat es etwas damit zu tun?

Dank

Antwort

0

hatte ich das gleiche Problem. Meine Lösung war, stattdessen momentjs zu verwenden.

so statt dessen

w2utils.formatDate('2016-07-12', 'd/m/y');

try this:

moment('2016-07-12').format('DD/MM/YYYY');