PHP time function ($today) for GMT +1

Time is one of the things in environment WordPress normalizes to GMT, so all native PHP function give that in WordPress context.

To get time in timezone, set in WordPress settings, try date_i18n() instead.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)