Child pages
  • KB78626385: WebCenter - Wrong date in e-mail notifications
Skip to end of metadata
Go to start of metadata

 

Summary

E-mail notifications sent by the WebCenter server are always sent in the time zone of the server.

Symptoms

  • People get e-mail notifications with a wrong due date.
  • People get e-mail notifications with a due date in a different time zone than their time zone.

Background information

WebCenter does not know the time zone of the WebCenter users. Therefore, it cannot convert the time information to the correct time zone for the user (remark that if it could, there would still be confusion for people interacting with each other over longer distance).

The date in the e-mail notifications for Task due dates, approval due dates are defined by the server time. So, if your server is in Europe (CET time zone), all e-mails will have time indicated in CET. American receivers will have to live with the time zone difference. For some, this is considered normal as they are used to working together with European partners. For others, this can be weird.

If only the date is shown (and not the time), the effect can be that people in the USA see a 'wrong' date.

Example: Due date is set by an American user to 10-Dec-13 at 18:00. This is converted to CET, which is 11-Dec-13 at 0:00. The e-mail notification will then show 11-Dec-13.

Display of Date Attributes

Date Attributes: By default a time stamp is shown (a number like 1387364637549). With advanced XSL transforms, you can also convert this into a readable format.

Workaround

  • Make sure the WebCenter servers' operating system time zone is the most used time zone for your company. 
  • If you display hours in the e-mail notification, add the time zone to it.
    • For e-mails sent from workflows, just add it after the due date smartname.
    • For e-mails sent from notification triggers (all other e-mails), you can change the XSL's (please be careful, or order a service for this). You can find them on \\server\WebCenter\ApplicationServer\EmailNotifications.

      • For most dates you can add the time zone by changing e.g.: ("' is first a double quote, then a single quote)

        <xsl:value-of select="project/project_due_date"/>

        into

        <xsl:value-of select="project/project_due_date"/><xsl:value-of select="'&nbsp;CET'"/>
      • For Approval e-mail notifications, you can find at the bottom of the (example) customization XSL's the DueDateTime template. You can change it into:

        <xsl:template name="dueDateTime">
        <xsl:param name="hour" />
        <xsl:param name="minute" />
        <xsl:value-of select="' '" />
        <xsl:value-of select="$hour" />
        <xsl:value-of select="':'" />
        <xsl:value-of select="$minute" />
        <xsl:value-of select="'&nbsp;CET'" />
        </xsl:template>
  • If you only display the date for the due date, then make sure the date is always the same. This can be influenced by the default due hour (most people don't take care to set the hour). 
    • Example: If your server is in Europe (CET zone) and you have to send notifications to people in the USA, avoid having due hours later than 14:00 in USA. This will then send out notifications on the correct date (it will convert the 14:00 to CET, which adds, for example, 6 hours to 20:00, which is still on the same date). 
Article information
Applies to

WebCenter all versions

Created18-Dec-13
Last revised31-Jul-14
AuthorHADW
CW Number181801
Contents