[PerlChina] DBI中日期的问题

黄叶 hylinux at gmail.com
Tue May 30 19:00:24 PDT 2006


HI, 各位
遇到了一个问题。
在使用DBI进行查询数据库的时候,
如果是日期字段,DBI会根据计算机的时间区域,自动进行转换,
比如我的电脑是中国上海的,那么查询出来的日期字段就变成了中文的了。
这在进一步计算的时候就有麻烦了,比如说用Date::Manip的UnixDate就会出错了。

如何将DBI的这种特性暂时的关闭掉?

谢谢各位。
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.pm.org/pipermail/china-pm/attachments/20060531/ce148fdc/attachment.html 


More information about the China-pm mailing list