Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.5.0

Bug #6334 Wrong timestamps on non-GMT timezones
Submitted: 2005-12-22 18:02 UTC Modified: 2005-12-27 21:28 UTC
From: struchkov at gmail dot com Assigned: heino
Status: Closed Package: Net_NNTP
PHP Version: Irrelevant OS:
Roadmaps: (Not assigned)    
Subscription  


 [2005-12-22 18:02 UTC] struchkov at gmail dot com
Description: ------------ function cmdNewnews($time, $newsgroups, $distribution = null) { $date = date('ymd His', $time); ....... if (is_null($distribution)) { $command = 'NEWNEWS ' . $newsgroups . ' ' . $date . ' GMT'; } else { ....... } The date must be a GMT-timestamp, but if my server is working in different timezone, date('ymd His') return a non-GMT timestamp.

Comments

 [2005-12-22 18:04 UTC] heino at php dot net
Replacing date() with gmdate() should be sufficient, right?
 [2005-12-25 15:18 UTC] struchkov at gmail dot com
Yes,It's right.
 [2005-12-27 21:28 UTC] heino at php dot net
Thank you for your bug report. This issue has been fixed in the latest released version of the package, which you can download at http://pear.php.net/get/Net_NNTP