cancel
Showing results for 
Search instead for 
Did you mean: 

Time zone wrong in emails template

chriskar
Champ in-the-making
Champ in-the-making

Hi, 

I am running Alfresco Share v23.1.1.1 on a k3s server.

I have set all the date/time settings for my local +2 timezone, and shows ok on the k3s environment and inside alfresco. All the documents created and modified dates/times are correct and show local time.

my issue is when my rule triggers an email send using the notify_user_email.html.ftl  template.

in there there is this date call ->    ${date?datetime?string.full}

which for some reason  prints the UCT - Coordinated Universal Time  that is 2 hours wrong.
 
this wrong time is only on the emails. my documents have the correct time.
what to do? please advise.
1 ACCEPTED ANSWER

angelborroy
Community Manager Community Manager
Community Manager

You may try using a FreeMarker approach, as documented in:

https://freemarker.apache.org/docs/ref_builtins_date.html

Hyland Developer Evangelist

View answer in original post

2 REPLIES 2

angelborroy
Community Manager Community Manager
Community Manager

You may try using a FreeMarker approach, as documented in:

https://freemarker.apache.org/docs/ref_builtins_date.html

Hyland Developer Evangelist

chriskar
Champ in-the-making
Champ in-the-making

thank you for your answer, it was helpfull.

i ended up inserting 

<#setting time_zone="Europe/Athens">

and then playing with the 

.....string["***"] formats to get the result i needed.