gocodebox / lifterlms

LifterLMS, a WordPress LMS Solution: Easily create, sell, and protect engaging online courses.
https://lifterlms.com
GNU General Public License v3.0
180 stars 134 forks source link

Drip Content Timezone #1304

Open nrherron92 opened 4 years ago

nrherron92 commented 4 years ago

Is your feature request related to a problem? Please describe. When the drip content notice for when the next class is available it sets one time and is not dependent on the user's time zone. For example, the site is in California timezone and content becomes available at 9am someone in Maine timezone won't get it until noon in their local time but the notice still says available at 9am.

Describe the solution you'd like Timezone specific notices.

Describe alternatives you've considered Something like this: https://gist.github.com/thomasplevy/82880f0420474fbae392aeca405ac229

thomasplevy commented 4 years ago

This particular message cannot be managed through a simple UI. Some messages in LifterLMS can be managed through a setting, others can't. There's not a good framework in place for determining which messages have a UI and which don't. To my knowledge we've never had a request to customize this language but it's probably just never reached me.

Adding a timezone to the setting feels like it might be an obvious addition but I fear that adding a timezone might frustrate some users who are happy with it the way it currently is. Since there's no UI that means we then need to provide code for anyone frustrated by the change.

I'm not sure if this particular message warrants a UI, if it does, it belongs in the lesson's settings. If we add a UI we need to add merge codes to the field -- or possibly shortcodes (sigh?) -- and if we do that we can use a code to output the date when the content becomes available. By default it'll output using the site's date/time settings and if a user wishes to add a timezone they can do so by adjusting the date/time format on the code to include the timezone. Or they could simply add the timezone to the end of the message.