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.

Date separator logic for older messages

See original GitHub issue

If you have older messages not loaded/rendered (i.e. “Show more” button is visible), the date separator is displayed below the Show more... button, even if the older messages are the same date as rendered ones.

@PolarizedIons thinks this is a benefit, I disagree - would like to hear others opinions

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
PolarizedIonscommented, Dec 30, 2016

This was by design choice, since you’d want to know what date the messages at the top of the page was, no matter if the messages ‘before’ the older messages button was the same date. It is removed automaticly when the show more button is pressed

I’m open to it if you guys have diffrent opinions on it, just explaining why it was done

1reaction
AlMcKinlaycommented, Jan 4, 2017

@MaxLeiter Yeah, I understand what you are saying, and I understand the confusion that it is because the date separator should be the first thing in the day showing.

However, I thought I would look at how slack does it (out of interest). And (for the split second that you are at the top, before it loads more messages, like we want to do in #207), it shows the date separator at the top. So…I would say we leave it as is, personally.

Read more comments on GitHub >

github_iconTop Results From Across the Web

SQL date format Overview; DateDiff SQL function, DateAdd ...
This article gives an overview of various SQL Date Format with useful functions DATEPART SQL, DATENAME SQL and DATEDIFF SQL functions along ...
Read more >
Easy Date Formatting With Liquid - Customer.io
Easy Date Formatting With Liquid ... Personalizing your messages with Liquid can increase conversions and build stronger customer loyalty.
Read more >
How do I display the calendar date on the top of chat messages?
In your onclick listener, you test that the last stored date is todays date, if it's not, it is converted into a chatmessage,...
Read more >
SORT DATE Functions with Examples - Tech Agilist
Using SORT DATE Functions you can dynamically insert the date, like 'yyyy-mm-dd' or any format instead of a constant date like '2021-01-01'.
Read more >
Fun with dates and times - IBM Developer
To get the current date, time, and timestamp using SQL, reference the appropriate DB2 registers: SELECT current date FROM sysibm.sysdummy1 SELECT current ...
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