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:
dillon 2015-08-19 15:50:10 -07:00
parent 0d294f6722
commit 79a91b512a

View file

@ -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>