# Widget- Customer Invoice Shows wrong Date (Previous day date)

**URL:** <https://www.dolibarr.org/forum/t/widget-customer-invoice-shows-wrong-date-previous-day-date/25159>\
**Category:** Using my Dolibarr\
**Created:** [April 1, 2024, 6:42am UTC](https://www.dolibarr.org/forum/t/widget-customer-invoice-shows-wrong-date-previous-day-date/25159 "2024-04-01T06:42:29Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![sribalaji.tvn](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/s/848f3c/32.png) [@sribalaji.tvn](https://www.dolibarr.org/forum/u/sribalaji.tvn)\
**Post date:** [April 1, 2024, 6:42am UTC](https://www.dolibarr.org/forum/t/widget-customer-invoice-shows-wrong-date-previous-day-date/25159/1 "2024-04-01T06:42:30Z")

</div>

Dolibarr 19.0.1  
**Widget-Customer Invoices: last 5 modified** is always showing wrong invoice date (just a day before, previous day date). Please see attached screenshot, the first three invoice created today 01-APRIL-2024 but shows Yesterday date…

 ![Widget](https://www.dolibarr.org/forum/uploads/dolibarrorg/original/2X/2/23c45dcbca42456d4c35a86ca984e66ddbac7dc2.png)

---

<div class="post-metadata">

**Author:** ![jonbendtsen](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/j/977dab/32.png) [@jonbendtsen](https://www.dolibarr.org/forum/u/jonbendtsen)\
**Post date:** [April 1, 2024, 7:14am UTC](https://www.dolibarr.org/forum/t/widget-customer-invoice-shows-wrong-date-previous-day-date/25159/2 "2024-04-01T07:14:17Z")

</div>

@sribalaji.tvn when did you **modify** those invoices?

---

<div class="post-metadata">

**Author:** ![sribalaji.tvn](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/s/848f3c/32.png) [@sribalaji.tvn](https://www.dolibarr.org/forum/u/sribalaji.tvn)\
**Post date:** [April 1, 2024, 7:28am UTC](https://www.dolibarr.org/forum/t/widget-customer-invoice-shows-wrong-date-previous-day-date/25159/3 "2024-04-01T07:28:42Z")

</div>

Never modified, Those invoice are newly created…

---

<div class="post-metadata">

**Author:** ![jonbendtsen](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/j/977dab/32.png) [@jonbendtsen](https://www.dolibarr.org/forum/u/jonbendtsen)\
**Post date:** [April 1, 2024, 10:42am UTC](https://www.dolibarr.org/forum/t/widget-customer-invoice-shows-wrong-date-previous-day-date/25159/4 "2024-04-01T10:42:59Z")

</div>

okay. Could you use the API explorer to GET the json for at least a single of those invoices and then post it here. But be wary of not revealing any private information.

At least all the lines in the json which has a key that contains `date` are needed

Example:

```auto
JonSweet16:order jonbendtsen$ grep date 305.json 
      "date_creation": null,
      "date_validation": null,
      "date_modification": null,
      "date_update": null,
      "date_cloture": null,
      "date_debut_prevue": null,
      "date_debut_reel": null,
      "date_fin_prevue": null,
      "date_fin_reel": null,
      "date_start": "",
      "date_end": ""
      "date_creation": null,
      "date_validation": null,
      "date_modification": null,
      "date_update": null,
      "date_cloture": null,
      "date_debut_prevue": null,
      "date_debut_reel": null,
      "date_fin_prevue": null,
      "date_fin_reel": null,
      "date_start": "",
      "date_end": ""
  "date_creation": 1699172714,
  "date_validation": 1699819927,
  "date_modification": 1699819927,
  "date_update": null,
  "date_cloture": null,
  "date": 1699138800,
  "date_commande": 1699138800,
  "date_livraison": "",
  "delivery_date": "",

```

---

<div class="post-metadata">

**Author:** ![sribalaji.tvn](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/s/848f3c/32.png) [@sribalaji.tvn](https://www.dolibarr.org/forum/u/sribalaji.tvn)\
**Post date:** [April 2, 2024, 11:06am UTC](https://www.dolibarr.org/forum/t/widget-customer-invoice-shows-wrong-date-previous-day-date/25159/5 "2024-04-02T11:06:57Z")

</div>

I am sorry I am not familiar with API explorer…  
Meanwhile what I found after 3 customer Invoice (Invoice Creation or Modification) from 4th events shows correct date (Existing wrong date goes out and 4th event comes In. Since this Widget only shows last 5 Invoice events)

---

<div class="post-metadata">

**Author:** ![jonbendtsen](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/j/977dab/32.png) [@jonbendtsen](https://www.dolibarr.org/forum/u/jonbendtsen)\
**Post date:** [April 3, 2024, 3:05pm UTC](https://www.dolibarr.org/forum/t/widget-customer-invoice-shows-wrong-date-previous-day-date/25159/6 "2024-04-03T15:05:35Z")

</div>

okay, let us know if it comes back

---

<div class="post-metadata">

**Author:** ![sribalaji.tvn](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/s/848f3c/32.png) [@sribalaji.tvn](https://www.dolibarr.org/forum/u/sribalaji.tvn)\
**Post date:** [April 6, 2024, 7:54am UTC](https://www.dolibarr.org/forum/t/widget-customer-invoice-shows-wrong-date-previous-day-date/25159/7 "2024-04-06T07:54:05Z")

</div>

The issue always persist! please see attached screenshots for your understanding. After 3rd Invoice event the 4th Invoice displayed with correct date(Green Underline). All RED underlined dates are previous day date.

 ![widget](https://www.dolibarr.org/forum/uploads/dolibarrorg/original/2X/c/c602b79d3a8077aa14754c4fa1e99b9cbc3e47ba.png)  
 ![widget1](https://www.dolibarr.org/forum/uploads/dolibarrorg/original/2X/4/47d9e61abd5c35e07c273e7fecd54b02f3cd8840.png)  
 ![widget2](https://www.dolibarr.org/forum/uploads/dolibarrorg/original/2X/8/85358e2cc7e085ce6edbee08b3b330908b43e5a7.png)  
 ![widget3](https://www.dolibarr.org/forum/uploads/dolibarrorg/original/2X/6/615afec689c1e513aadc43e7c7b33e1f09a636a5.png)
