Title: Bug in hook-header.php
Last modified: April 12, 2020

---

# Bug in hook-header.php

 *  Resolved [henningandersen](https://wordpress.org/support/users/henningandersen/)
 * (@henningandersen)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/bug-in-hook-header-php/)
 * Hi
    I’ve discovered a bug in the hook-header.php file. The date format in the
   header is hardcoded – it should (in my opinion) rely on the global setup of date
   format in WordPress.
 * From the code:
 * <?php if($header_data_enable == true)
    { ?> <ul class=”info-left”>
    - <?php
       echo date_i18n(‘D. M jS, Y’, strtotime(current_time(“Y-m-d”))); if(
      $header_time_enable == true) { ?> <span id =”time” class=”time”></span> <?
      php } ?>
    - <?php } ?>

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Theme Author [themeansar](https://wordpress.org/support/users/themeansar/)
 * (@themeansar)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/bug-in-hook-header-php/#post-12662560)
 * Hi,
 * Thanks for contacting us,
 * This is not a bug, we have only added hard coded time format in our theme,
 * Thanks for opinion and suggestion for this, we will update this feature in next
   update, so that you will be able to change the date and time according to your
   country timezone and custom timezone,
 * then you will be able to change time and date according to you using this following
   link : [https://www.wpbeginner.com/beginners-guide/how-to-change-date-and-time-format-in-wordpress/](https://www.wpbeginner.com/beginners-guide/how-to-change-date-and-time-format-in-wordpress/)
 * Any other query please lets know.
 * Thanks
 *  Theme Author [themeansar](https://wordpress.org/support/users/themeansar/)
 * (@themeansar)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/bug-in-hook-header-php/#post-12666028)
 * Hi,
 * We have added this settings to change Time and Date according to you in Newsup
   2.8 version, so this please update Newsup 2.8 Version then go to Header Options(
   Theme Dashboard >> Appreance >> Customize >> Theme Options >> Header option) 
   and select From WordPress Settings and change your date and time according to
   you..
 * You can also following this article link change WordPress Date and Time: [https://www.wpbeginner.com/beginners-guide/how-to-change-date-and-time-format-in-wordpress/](https://www.wpbeginner.com/beginners-guide/how-to-change-date-and-time-format-in-wordpress/)
 * Anything else let’s know
 * Thanks
 *  Thread Starter [henningandersen](https://wordpress.org/support/users/henningandersen/)
 * (@henningandersen)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/bug-in-hook-header-php/#post-12667769)
 * Thank you. 🙂
 *  Theme Author [themeansar](https://wordpress.org/support/users/themeansar/)
 * (@themeansar)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/bug-in-hook-header-php/#post-12669663)
 * Hi,
 * Glad to know it worked for you.We would really appreciate,
    if you could provide
   us a review here:
 * [https://wordpress.org/support/theme/newsup/reviews/#new-post](https://wordpress.org/support/theme/newsup/reviews/#new-post)
 * If you have any more questions, feel free to ask again!
 * Thanks

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Bug in hook-header.php’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/newsup/5.3.3/screenshot.jpg)
 * Newsup
 * [Support Threads](https://wordpress.org/support/theme/newsup/)
 * [Active Topics](https://wordpress.org/support/theme/newsup/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/newsup/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/newsup/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [themeansar](https://wordpress.org/support/users/themeansar/)
 * Last activity: [5 years, 11 months ago](https://wordpress.org/support/topic/bug-in-hook-header-php/#post-12669663)
 * Status: resolved