Language
I think that many people often handle dates and times while creating plugins.
However, if you use PHP date or time , the time will be off.
So I recommend a WordPress function current_time().
You can use another function date_i18n () for WordPress, but from WordPress 3.9 or more, I suggest using current_time () .
Below is the WordPress Codex page.
Function reference / current time
The WordPress time zone is set to UTC . If this is used, the time will be off.
2019-07-25 Get information from the WordPress database using wpdb->prepare [plugin production] NEW!
2019-07-23 How to pass array to the database by using "update_option". WordPress Plugin Creation
2019-07-17 How to create a database table from a WordPress plugin
2019-07-13 Use current_time () when dealing with WordPress dates!