Advertisement:

Author Topic: Relative Dates  (Read 32802 times)

Offline Wellwisher

  • Full Member
  • ***
  • Posts: 448
  • Gender: Male
Re: Relative Dates
« Reply #80 on: January 28, 2021, 01:14:26 AM »
You want *ALL* dates to be relative?

@Kindred, this looks sexy. 8). This works for me folks. Thank you Kindred, this will help a lot of lost souls.  :laugh:

I still want to introduce the "on-hover tool tip" feature which reveals the full date & time. Anyway we can add this? I can then work out the .JS and the .CSS required to achieve it.






Online Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 60,218
  • Gender: Male
    • Kindred-999 on GitHub
Re: Relative Dates
« Reply #81 on: January 28, 2021, 09:46:20 AM »
that becomes more difficult --- in that the function would have to be modified to output two values (the relative and the absolute) *AND* every location which calls the timeformat function would have to be modified to accept that changed output.
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Offline Wellwisher

  • Full Member
  • ***
  • Posts: 448
  • Gender: Male
Re: Relative Dates
« Reply #82 on: January 28, 2021, 11:36:12 AM »
that becomes more difficult --- in that the function would have to be modified to output two values (the relative and the absolute) *AND* every location which calls the timeformat function would have to be modified to accept that changed output.

Thanks for heads-up Kindred, appreciate the helpful advice. I might get a freelancer to take a look into this at some point. If I do, I will share the code here or in the tips & tricks section.   8)

Online Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 60,218
  • Gender: Male
    • Kindred-999 on GitHub
Re: Relative Dates
« Reply #83 on: January 28, 2021, 12:28:23 PM »
Looking into this a little bit more -- my changes above will also have a possibly unintended side-effect -- it will also affect the display of the event in messages with linked calendar events as well as Polls and "edited by" notations...
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Offline Wellwisher

  • Full Member
  • ***
  • Posts: 448
  • Gender: Male
Re: Relative Dates
« Reply #84 on: January 29, 2021, 01:51:27 AM »
Looking into this a little bit more -- my changes above will also have a possibly unintended side-effect -- it will also affect the display of the event in messages with linked calendar events as well as Polls and "edited by" notations...


No worries, thanks for letting me know Kindred.