berlindb / core

All of the required core code
MIT License
252 stars 27 forks source link

Column: In validate_datetime(), prefer gmdate() over date(). #79

Closed JJJ closed 3 years ago

JJJ commented 3 years ago

Berlin enforces storing datetime values according to UTC/GMT. For WordPress, date/gmdate are essentially synonymous, making these functions easy to conflate.

A future version of validate_datetime() may implement its own time zone handler, as a way to internally override/verify the UTC result, but gmdate() here is a small step towards that.

Fixes #75.