diff --git a/addons/mail/static/src/core/web/activity.js b/addons/mail/static/src/core/web/activity.js index d509ce91ebe..4b3176213b2 100644 --- a/addons/mail/static/src/core/web/activity.js +++ b/addons/mail/static/src/core/web/activity.js @@ -9,6 +9,7 @@ import { AvatarCardPopover } from "@mail/discuss/web/avatar_card/avatar_card_pop import { Component, onMounted, onWillUnmount, useState } from "@odoo/owl"; import { browser } from "@web/core/browser/browser"; +import { deserializeDateTime } from "@web/core/l10n/dates"; import { _t } from "@web/core/l10n/translation"; import { usePopover } from "@web/core/popover/popover_hook"; import { useService } from "@web/core/utils/hooks"; @@ -50,6 +51,12 @@ export class Activity extends Component { return this.props.data.display_name; } + get displayCreateDate() { + return deserializeDateTime(this.props.data.create_date).toLocaleString( + luxon.DateTime.DATETIME_SHORT_WITH_SECONDS + ); + } + updateDelayAtNight() { browser.clearTimeout(this.updateDelayMidnightTimeout); this.updateDelayMidnightTimeout = browser.setTimeout( diff --git a/addons/mail/static/src/core/web/activity.xml b/addons/mail/static/src/core/web/activity.xml index b3e3cdd0ccd..e0d3ea74c47 100644 --- a/addons/mail/static/src/core/web/activity.xml +++ b/addons/mail/static/src/core/web/activity.xml @@ -32,7 +32,7 @@
| Activity type | |
| Created | |
| Created | |
| Assigned to | |
| Due on |