No Streak Feature... yet

Okay so I guess this shows you the priority differences between me and ArcticLoon. Lol but actually I am in the process of implementing streak functionality.

I was wondering how people go about it. Based on how timezone-bug ridden the old site's implementation was I had the idea that maybe Baz had a database table that marked each day as having a post or not and then calculating the streak based on that. Then if there was a timezone issue a user reported, Baz would go into this database and manually change values to make the streak right.

I however don't find it wise to mark the streak as we go forward. I think better to do is retrospectively calculate the streak based on the timestamps of their post-publishing activity. This way it can be easier to account for timezones. More on this later. 
btw 
keenen
could you share a high level view of how you and Jason tackled Streaks?
2020-12-06 17:02:51
Jason would be able to give more details but I know he used a node library that calculated the streaks based on the dates of posts. Like how you're thinking of doing it. The library just handled the calculation.
2020-12-06 17:06:24
I'm glad I can be the test case for AZ, which does not have DST, to throw a spanner in the works.
2020-12-06 19:29:35
Omg AZ no DST? Did that ever throw your streak off at the old site?
2020-12-06 21:58:12
I don't think so. I think I only had one issue with the streak and never found out what caused it.
2020-12-07 02:06:02
Yep, 
abrahamKim
 as Keenen said, i used the date-streaks npm package. My published dates are in timestamptz, and the library just calculates based on the author's array of posts 
2020-12-09 07:35:06
Cool thanks for sharing. I'll study date-streaks package to help me write my own implementation. 
2020-12-09 14:37:20