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

Request #13106 Add abstraction for FROM_UNIXTIME
Submitted: 2008-02-12 19:50 UTC
From: till Assigned: quipo
Status: Closed Package: MDB2 (version 2.4.1)
PHP Version: Irrelevant OS: n/a
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 : 35 - 7 = ?

 
 [2008-02-12 19:50 UTC] till (Till Klampaeckel)
Description: ------------ We need that support badly. Any chance someone can implement this in the upcoming release? Would be very cool. :-) On MySQL: > SELECT UNIX_TIMESTAMP(now()) AS tz_db; PostgreSQL: > SELECT extract(epoch from date_trunc('seconds', current_timestamp)) AS tz_db; or > SELECT extract(epoch from date_trunc('seconds', localtimestamp)) AS tz_db; SQLite: > SELECT strftime("%s",datetime('NOW')); Examples by chasd: <http://lists.roundcube.net/mail-archive/dev/2008-02/0000042.html>

Comments

 [2008-02-17 19:18 UTC] quipo (Lorenzo Alberton)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.