Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted June 24, 201410 yr Hi there, Dealing with dates on a forum is not easy, especially when you have members all across the globe. Often, when you post a date in a forum post, you have to explicitly precise the timezone, and the reader has to calculate the result for his own timezone. That's really not friendly, and even a shame, knowing that the member timezone is already stored in his settings! So, it would be gorgeous to have a "date" BBCode that automatically calculates a date according to the member's declared timezone. For instance : [date]2014-06-24T16:13:21+02:00[/date] … would give the date in the reader's timezone. Bad idea? Thanks for reading! :)
June 25, 201410 yr Converting dates isn't that easy for most people. With daylight saving time and such. So I like your idea even when most of our visitors are in the same timezone.
June 25, 201410 yr Converting dates to the users timezone, including DST, isn't difficult and not the limitation here. The problem here, the full HTML of recent posts is cached for performance. Once the cache is written, the date would be set to the date the user who triggered the cache would get... While a nice idea, dynamic content doesn't play well when you introduce caching.
Archived
This topic is now archived and is closed to further replies.