ColdFusion 7/8 不同时区
这个问题让我真的很难过。我正在使用一个非常古老的 Web 应用程序,其中包含多种编程语言。以前,它将所有日期时间存储在 MySQL 数据库的日期时间字段中。到目前为止,一切都是在服务器时间完成的,而服务器时间恰好是美国/太平洋地区。我的任务是向应用程序添加“时区功能”。我非常成功地转换了大部分应用程序。
我唯一剩下的问题是使用 ColdFusion 特定日期时间 函数。似乎有很多行代码使用了其中一些函数。我的理想情况是能够在 Application.cfm 页面上调整时区,而无需担心任何这些功能的时区。我已经做了很多搜索,但似乎找不到任何东西。任何帮助都会很棒!如果我可以提供更多详细信息,请告诉我。
This problem makes me really sad. I'm working with a pretty archaic web application with an eclectic mix of programming languages. Previously, it stored any and all datetimes in a Datetime field in our MySQL database. Until now, everything has been done in server time, which happens to be US/Pacific. I was tasked with adding "Timezone functionality" to the application. I have been pretty successful with converting most of the application.
My only remaining problems are the use of ColdFusion specific datetime functions. There appears to be many lines of code that use some of these functions. My ideal situation would be to be able to adjust the timezone on my Application.cfm page and not need to worry about the timezone for any of these functions. I've done quite a bit of searching and I can't seem to find anything. Any help would be awesome! Please let me know if I can provide any more details.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请参阅:如何处理 CFML 中的时区?
see: How to handle timezones in CFML?