Time zone wrong in emails template

cancel
Showing results for 
Search instead for 
Did you mean: 
chriskar
Member II

Time zone wrong in emails template

Jump to solution

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 Solution

Accepted Solutions
angelborroy
Alfresco Employee

Re: Time zone wrong in emails template

Jump to solution

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

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

Hyland Developer Evangelist

View solution in original post

2 Replies
angelborroy
Alfresco Employee

Re: Time zone wrong in emails template

Jump to solution

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

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

Hyland Developer Evangelist
chriskar
Member II

Re: Time zone wrong in emails template

Jump to solution

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.