From c16f74d9a29b8af05729f5c814ce543172214e0b Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Tue, 28 Jul 2015 10:56:23 +0300 Subject: [PATCH] Fixed problem with dates with new PDF designs --- public/js/built.js | 4 ++-- public/js/pdf.pdfmake.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/public/js/built.js b/public/js/built.js index 72ef6125f2..8902b492b6 100644 --- a/public/js/built.js +++ b/public/js/built.js @@ -31824,11 +31824,11 @@ NINJA.invoiceDetails = function(invoice) { ], [ {text: invoiceLabels.invoice_date}, - {text: moment(invoice.invoice_date, 'YYYY-MM-DD').format('MMM D YYYY')} + {text: invoice.invoice_date} ], [ {text: invoiceLabels.due_date}, - {text: invoice.due_date ? moment(invoice.due_date, 'YYYY-MM-DD').format('MMM D YYYY') : false} + {text: invoice.due_date} ] ]; diff --git a/public/js/pdf.pdfmake.js b/public/js/pdf.pdfmake.js index 23b3aef51f..ad7ad65406 100644 --- a/public/js/pdf.pdfmake.js +++ b/public/js/pdf.pdfmake.js @@ -347,11 +347,11 @@ NINJA.invoiceDetails = function(invoice) { ], [ {text: invoiceLabels.invoice_date}, - {text: moment(invoice.invoice_date, 'YYYY-MM-DD').format('MMM D YYYY')} + {text: invoice.invoice_date} ], [ {text: invoiceLabels.due_date}, - {text: invoice.due_date ? moment(invoice.due_date, 'YYYY-MM-DD').format('MMM D YYYY') : false} + {text: invoice.due_date} ] ];