You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2024-04-22 18:43:38

sIBajHYG
Member
From: Mission [KS]
Registered: 2023-08-18
Posts: 75

[SOLVED] How to reverse a date?

According to the guide, I set up notifications.

https://glpi-user-documentation.readthedocs.io/fr/latest/modules/configuration/notifications/template_example.html
##FOREACHtimelineitems##
 ##timelineitems.author## - ##timelineitems.date##
 ##timelineitems.description##
##ENDFOREACHtimelineitems##

But, ##timelineitems.date## has the format YYYY-MM-DD in the notification.
AkeHLh.jpg
Please tell me how to change it to MM-DD-YYYY?

Last edited by sIBajHYG (2024-04-24 16:36:35)


Linux ubuntu-22.04.2-live-server-amd64, PHP 8.1.2, Apache 2.4.52, MariaDB 10.6.12, GLPI 10.0.15.
GLPI Inventory 1.3.5, PHP SAML 1.3.0,  Oauth IMAP 1.4.3, Additional Fields, 1.21.8,Ticket Cleaner.

Offline

#2 2024-04-23 15:25:50

tikkit
Member
Registered: 2015-03-25
Posts: 19

Re: [SOLVED] How to reverse a date?

I did a few quick tests. The date format used in the notification email of a ticket seems to be the date format from the personal settings of the user making the change to the ticket.

Offline

#3 2024-04-23 18:29:38

sIBajHYG
Member
From: Mission [KS]
Registered: 2023-08-18
Posts: 75

Re: [SOLVED] How to reverse a date?

tikkit wrote:

I did a few quick tests. The date format used in the notification email of a ticket seems to be the date format from the personal settings of the user making the change to the ticket.

Doesn't match, unfortunately.
Also in the screenshot in the first post there is a New Ticket and a New Followup on it made on behalf of the same user... The date is upside down.

Last edited by sIBajHYG (2024-04-23 23:10:07)


Linux ubuntu-22.04.2-live-server-amd64, PHP 8.1.2, Apache 2.4.52, MariaDB 10.6.12, GLPI 10.0.15.
GLPI Inventory 1.3.5, PHP SAML 1.3.0,  Oauth IMAP 1.4.3, Additional Fields, 1.21.8,Ticket Cleaner.

Offline

#4 2024-04-23 23:21:02

cconard96
Moderator
Registered: 2018-07-31
Posts: 2,809
Website

Re: [SOLVED] How to reverse a date?

Which version of GLPI are you testing this on?


GLPI Collaborator and Plugin Developer.
My non-English comments are automated translations. Sorry for any confusion that causes.
Mes commentaires non anglais sont des traductions automatiques. Désolé pour toute confusion qui cause.
Mis comentarios que no están en inglés son traducciones automáticas. Perdón por cualquier confusión que cause.

Offline

#5 2024-04-23 23:21:51

cconard96
Moderator
Registered: 2018-07-31
Posts: 2,809
Website

Re: [SOLVED] How to reverse a date?

A fix was made in GLPI 10.0.7 regarding the date/time format of timeline items in notifications.
https://github.com/glpi-project/glpi/pull/14225


GLPI Collaborator and Plugin Developer.
My non-English comments are automated translations. Sorry for any confusion that causes.
Mes commentaires non anglais sont des traductions automatiques. Désolé pour toute confusion qui cause.
Mis comentarios que no están en inglés son traducciones automáticas. Perdón por cualquier confusión que cause.

Offline

#6 2024-04-24 16:36:18

sIBajHYG
Member
From: Mission [KS]
Registered: 2023-08-18
Posts: 75

Re: [SOLVED] How to reverse a date?

cconard96 wrote:

A fix was made in GLPI 10.0.7 regarding the date/time format of timeline items in notifications.
https://github.com/glpi-project/glpi/pull/14225

Thanks a lot - it worked.


Linux ubuntu-22.04.2-live-server-amd64, PHP 8.1.2, Apache 2.4.52, MariaDB 10.6.12, GLPI 10.0.15.
GLPI Inventory 1.3.5, PHP SAML 1.3.0,  Oauth IMAP 1.4.3, Additional Fields, 1.21.8,Ticket Cleaner.

Offline

Board footer

Powered by FluxBB