refactor: 💡 Refactor Start date format within session-recording (#209)
* refactor: 💡 Refactor Start date format within session-recording
This commit is contained in:
1 parent
db408a9acd
commit
df0cea890d
4 files changed
+17
-10
No files matched your search
@@ -34,13 +34,6 @@ export default {
|
||||
minute: 'numeric',
|
||||
timeZoneName: 'short',
|
||||
},
|
||||
mmddyyhhmm: {
|
||||
year: 'numeric',
|
||||
month: '2-digit',
|
||||
day: '2-digit',
|
||||
hour: 'numeric',
|
||||
minute: 'numeric',
|
||||
},
|
||||
},
|
||||
number: {
|
||||
compact: { notation: 'compact' },
|
||||
|
||||
@@ -25,7 +25,9 @@
|
||||
{{! Time }}
|
||||
<B.Td>
|
||||
<span class='hds-foreground-faint'>
|
||||
{{format-date B.data.start_time format='mmddyyhhmm'}}
|
||||
<time datetime={{format-date-iso B.data.start_time}}>
|
||||
{{format-date-iso-human B.data.start_time}}
|
||||
</time>
|
||||
</span>
|
||||
</B.Td>
|
||||
{{! User }}
|
||||
|
||||
+6
-1
@@ -27,7 +27,12 @@
|
||||
<MetadataList @orientation='vertical' as |list|>
|
||||
{{! Start time }}
|
||||
<list.Item @icon='calendar' @color='faint'>
|
||||
{{@model.channelRecording.start_time}}
|
||||
{{t 'form.started.label'}}
|
||||
<time
|
||||
datetime={{format-date-iso @model.channelRecording.start_time}}
|
||||
>
|
||||
{{format-date-iso-human @model.channelRecording.start_time}}
|
||||
</time>
|
||||
</list.Item>
|
||||
{{! Duration }}
|
||||
<list.Item @icon='clock' @color='faint'>
|
||||
|
||||
@@ -77,7 +77,14 @@
|
||||
<MetadataList @orientation='vertical' as |list|>
|
||||
{{! Start time }}
|
||||
<list.Item @icon='calendar' @color='faint'>
|
||||
{{@model.sessionRecording.start_time}}
|
||||
{{t 'form.started.label'}}
|
||||
<time
|
||||
datetime={{format-date-iso
|
||||
@model.sessionRecording.start_time
|
||||
}}
|
||||
>
|
||||
{{format-date-iso-human @model.sessionRecording.start_time}}
|
||||
</time>
|
||||
</list.Item>
|
||||
{{! Duration }}
|
||||
<list.Item @icon='clock' @color='faint'>
|
||||
|
||||
Reference in new issue
Block a user