免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 5541 | 回复: 3
打印 上一主题 下一主题

[FTP] proftp上传显示的时间相差8小时(已解决) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-06-26 15:03 |只看该作者 |倒序浏览
我安装的是proftpd-1.3.1rc2.tar.gz

查找了资料

  1. TimesGMT
  2. Name
  3. TimesGMT -- Toggle time display between GMT and local
  4. Synopsis
  5. TimesGMT [ TimesGMT on|off]



  6. Default
  7. (versions 1.2.0pre9 and beyond) on

  8. Context
  9. server config, <VirtualHost>, <Anonymous>, <Global>

  10. Module
  11. mod_core

  12. Compatibility

  13. Description
  14. Compatibility: 1.2.0pre9 and later The TimesGMT option causes the server to report all ls and MDTM times in GMT and not local time.

  15. See also

  16. Examples
复制代码



加了这个参数也没有用,

有高手了解吗

谢谢

[ 本帖最后由 njblue2004 于 2007-6-26 16:58 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2007-06-26 17:00 |只看该作者
查了一上资料

http://bugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=380667


  1. I think we're getting close to the problem. Why is ProFTPD setting TZ
  2. to "CST" instead of "US/Central"? I re-ran tzconfig and chose
  3. US/Central. I confirmed (again) that both /etc/timezone and
  4. /etc/localtime both point to the correct timezone (US/Central), but
  5. when I log into ProFTPD with DefaultRoot set, I still get this:

  6. dbtserv.test.****.com (dbtserv.test.****.com[::ffff:10.100.51.2]) - set
  7. TZ environment variable to 'CST'

  8. ProFTPD should be setting TZ equal to "US/Central" (or even "CST6CDT"),
  9. not "CST". "CST" isn't even a valid time zone name. Since the time zone
  10. name isn't valid, the system is dropping back to UTC.

  11. Just for fun, I sym-linked /usr/share/zoneinfo/CST to
  12. /usr/share/zoneinfo/US/Central. That makes ProFTPD report the correct
  13. time stamps, but that's a hack. ProFTPD should be setting TZ to the
  14. correct timezone name.
复制代码


做一个软链接就可以了
ln -s /usr/share/zoneinfo/Asia/Shanghai /usr/share/zoneinfo/CST


我用的是proftpd-1.3.1rc2.tar.gz

老外很强啊,

就是不知道对其他和时区相关的应用有没有影响
:)

[ 本帖最后由 njblue2004 于 2007-6-26 17:29 编辑 ]

论坛徽章:
0
3 [报告]
发表于 2007-07-01 18:19 |只看该作者
/etc/timezone里面设置+8就可以了(重新登陆下)

论坛徽章:
0
4 [报告]
发表于 2008-04-11 09:55 |只看该作者
感谢楼主 这个问题解决拉 哈哈
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP