mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-20 22:23:53 +08:00
fix(message-timestamp): call @_formattedDate with correct params. fixes T3388.
Summary: small fix Test Plan: I didn't add any tests, but this should probably be tested. Not sure the best way to test though. Would love to discuss with somebody! Reviewers: bengotow Reviewed By: bengotow Maniphest Tasks: T3388 Differential Revision: https://phab.nylas.com/D1919
This commit is contained in:
parent
0d294f6722
commit
79a91b512a
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ class MessageTimestamp extends React.Component
|
|||
render: =>
|
||||
msgDate = moment.tz(@props.date, Utils.timeZone)
|
||||
nowDate = @_today()
|
||||
formattedDate = @_formattedDate(nowDate, msgDate, @props.isDetailed)
|
||||
formattedDate = @_formattedDate(msgDate, nowDate, @props.isDetailed)
|
||||
<div className={@props.className}
|
||||
onClick={@props.onClick}>{formattedDate}</div>
|
||||
|
||||
|
|
Loading…
Reference in a new issue