question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Chat UI] message input "date" should allow for different date formatting

See original GitHub issue

Issue type

I’m submitting a … (check one with “x”)

  • bug report
  • feature request

Issue description

Current behavior:

I saw in https://github.com/akveo/nebular/blob/master/src/framework/theme/components/chat/chat-message-text.component.ts#L15 that the date input into nb-chat-message is always piped into shortTime. This is confusing if the messages span multiple days. Can something like datePipeFormat: string (https://angular.io/api/common/DatePipe#pre-defined-format-options) be added as an input as well?

Expected behavior:

The chat messages would display the date as well to prevent confusing over messages spanning multiple days.

Steps to reproduce:

Add messages to nb-chat-message where the dates span multiple days.

Other information:

npm, node, OS, Browser

<!--
Node, npm: `node --version` and `npm --version`
OS: Windows (7/8/10). Linux (incl. distribution). macOS (El Capitan? Sierra?)
Browser: Chrome/Safari/Firefox/etc?
-->
node --version
v10.16.0

npm --version
6.9.0

OS: macOS Mojave
Browser: Chrome

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:3
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
erickconcepcioncommented, Jul 10, 2019

I want it too.

0reactions
piotrbrzuskacommented, Mar 28, 2020

sounds like done. this issue should be closed

Read more comments on GitHub >

github_iconTop Results From Across the Web

<input type="date"> - HTML: HyperText Markup Language
Date inputs provide an easy interface for choosing dates, and they normalize the data format sent to the server regardless of the user's...
Read more >
Lightning:input type="date": how to change the date fomat
I'm trying to change date format of this component but I dont find any attribute (like ui:inputDate has) to change the date format....
Read more >
How to set date format in HTML date input tag? - Stack Overflow
The Date accepted by an input results in a String formatted as 'yyyy-mm-dd'. We can split it and place it properly as a...
Read more >
Date-Input Form Fields: UX Design Guidelines
Formatting a date-entry field may seem like a minor detail; however, even small interactions can draw a process to a standstill if ...
Read more >
Making input type=date complicated | by Peter-Paul Koch
input type=”date” · Offer the user a convenient interface for entering dates. · Send predictable output to the server. All browsers I tested ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found