LaCollision Posted June 24, 2014 Share Posted June 24, 2014 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! :) Link to comment Share on other sites More sharing options...
LaCollision Posted June 25, 2014 Author Share Posted June 25, 2014 I KNEW I'm the only one interested in that idea :sleep: :smile: Link to comment Share on other sites More sharing options...
Joriz Posted June 25, 2014 Share Posted June 25, 2014 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. Link to comment Share on other sites More sharing options...
Aiwa Posted June 25, 2014 Share Posted June 25, 2014 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.