dateTime values in settings page are always a day behind
Update: Sorry dragonslovetacos, I just tested this and found out it doesn't work as expected. It probably is the right way to handle DateTime values when saved with attribute type DateTime.



You're probably not preparing the value for your template. Before saving your date to the database you convert it to a DateTime object and your system timezone gets calculated into the value. You now need to do the same thing before you render that value in your template.

Or maybe it's the other way round, and you're preparing the value for your template and save it unprepared.

Anyways, the helper function DateTime::createFromString() should be applied to your value in both, prepSettings() and getSettingsHtml().