Skip to content

[FIX] Attachments without dates were showing December 31, 1970#13428

Merged
rodrigok merged 5 commits intoRocketChat:developfrom
mieweb:fix-attachment-date
Mar 2, 2019
Merged

[FIX] Attachments without dates were showing December 31, 1970#13428
rodrigok merged 5 commits intoRocketChat:developfrom
mieweb:fix-attachment-date

Conversation

@wreiske
Copy link
Contributor

@wreiske wreiske commented Feb 9, 2019

Closes #13427

Before
screen shot 2019-02-09 at 12 46 53 pm

After
screen shot 2019-02-09 at 12 46 22 pm

The Fix:
Wrap the time tag in an "unless" so it wont show if it is null.

{{#unless time}}
	<span class="time">
		{{time}}
	</span>
{{/unless}}

@ggazzo ggazzo added the area: ui Touches the code on client side label Feb 10, 2019
@ggazzo ggazzo added this to the 0.75.0 milestone Feb 10, 2019
@rodrigok rodrigok merged commit 474c918 into RocketChat:develop Mar 2, 2019
@rodrigok rodrigok changed the title [Fix] attachment dates that are null from showing December... [FIX] Attachments without dates were showing December 31, 1970 Mar 2, 2019
@rodrigok rodrigok mentioned this pull request Apr 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: ui Touches the code on client side

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments