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

Bug #6334 Wrong timestamps on non-GMT timezones
Submitted: 2005-12-22 23:02 UTC
From: struchkov at gmail dot com Assigned: heino
Status: Closed Package: Net_NNTP
PHP Version: Irrelevant OS:
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 48 - 4 = ?

 
 [2005-12-22 23: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 23:04 UTC] heino at php dot net
Replacing date() with gmdate() should be sufficient, right?
 [2005-12-25 20:18 UTC] struchkov at gmail dot com
Yes,It's right.
 [2005-12-28 02: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