Title: DateTime
Last modified: May 26, 2018

---

# DateTime

 *  Resolved [sacredwx](https://wordpress.org/support/users/sacredwx/)
 * (@sacredwx)
 * [8 years ago](https://wordpress.org/support/topic/datetime-6/)
 * Hi, After the last update of the 5.1.0 version of the plugin.
    I started receiving
   a lot of errors of the following type: [May 25, 21:35:38] PHP Fatal error: Uncaught
   Exception: DateTime::__construct(): Failed to parse time string (1527298538) 
   at position 7 (5): Unexpected character in /var/www/html/xxx/wp-content/plugins/
   wpdiscuz/utils/class.WpdiscuzHelper.php:62 Stack trace: #0 /var/www/html/xxx/
   wp-content/plugins/wpdiscuz/utils/class.WpdiscuzHelper.php(62): DateTime->__construct(‘
   1527298538’) #1 /var/www/html/xxx/wp-content/themes/xxx/wpdiscuz/class.WpdiscuzWalker.
   php(155): WpdiscuzHelper->dateDiff(1527298538, 1526029940, 1) #2 /var/www/html/
   xxx/wp-includes/class-wp-walker.php(145): WpdiscuzWalker->start_el(”, Object(
   WP_Comment), 1, Array) #3 /var/www/html/xxx/wp-includes/class-walker-comment.
   php(135): Walker->display_element(Object(WP_Comment), Array, ‘5’, 0, Array, ”)#
   4 /var/www/html/xxx/wp-includes/class-wp-walker.php(370): Walker_Comment->display_element(
   Object(WP_Comment), Array, ‘5’, 0, Array, ”) #5 /var/www/html/xxx/wp-includes/
   comment-template.php(2097): Walker->page in /var/www/html/xxx/wp-content/plugins/
   wpdiscuz/utils/class.WpdiscuzHelper.php on line 62
 * seems like you transfer unix timestamp to the DateTime class, but it can’t receive
   this type of date. Only strings. Please take a look at.

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

 *  Plugin Support [gVectors Support](https://wordpress.org/support/users/gvectorssupport/)
 * (@gvectorssupport)
 * [8 years ago](https://wordpress.org/support/topic/datetime-6/#post-10326680)
 * Hi [@sacredwx](https://wordpress.org/support/users/sacredwx/),
 * This is a known issue, please follow this support:
    [https://wordpress.org/support/topic/problem-after-update-43/](https://wordpress.org/support/topic/problem-after-update-43/)
 *  Thread Starter [sacredwx](https://wordpress.org/support/users/sacredwx/)
 * (@sacredwx)
 * [8 years ago](https://wordpress.org/support/topic/datetime-6/#post-10326689)
 * I see, it’s because I had copied the class.WpdiscuzWalker.php file from the previous
   version to the theme. Thanks!

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

The topic ‘DateTime’ is closed to new replies.

 * ![](https://ps.w.org/wpdiscuz/assets/icon-256x256.png?rev=1076265)
 * [Comments - wpDiscuz](https://wordpress.org/plugins/wpdiscuz/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpdiscuz/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpdiscuz/)
 * [Active Topics](https://wordpress.org/support/plugin/wpdiscuz/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpdiscuz/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpdiscuz/reviews/)

## Tags

 * [datetime](https://wordpress.org/support/topic-tag/datetime/)
 * [fatal error](https://wordpress.org/support/topic-tag/fatal-error/)

 * 2 replies
 * 2 participants
 * Last reply from: [sacredwx](https://wordpress.org/support/users/sacredwx/)
 * Last activity: [8 years ago](https://wordpress.org/support/topic/datetime-6/#post-10326689)
 * Status: resolved