Jump to content

Issue with due date (colors red/black) when using specific date format


Recommended Posts

Posted

When setting the date format to 'd/m/Y', due dates are incorrectly displayed in red, as if they are past due. However, using the 'd-m-Y' format solves the color issue. I'm not sure if this is just a visual bug, or if other due date calculations are also being affected by the '/' date format.

My guess is that when Blesta finds dates with /, it assumes m/d/Y, at least for this color calculation.

 

It happens in the admin and client areas:

* /admin/billing/ionvoices

* /admin/clients/view/X

* /client

* /client/invoices/index/open

* maybe other places.

 

How to reproduce:

1. You need to have many invoices with future due dates.

2. Set your date to d/m/Y

3. The invoices should show as due, even though due dates are in the future.

4. Change it to d-m-Y, those invoices should show the correct color.

 

Example with d/m/Y (wrong)

image.png.34ada9e06ac3175960ad949a021fcd78.png

Example with d-m-Y (correct)

image.png.24f46d98fa63ac99c6664fdc1effff03.png

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...