如何在数据库表中保存客户端日期时间? [英] How save the Client side datetime in database table?
本文介绍了如何在数据库表中保存客户端日期时间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
第1步:我正在开发聊天应用程序。我在数据库表中保存了消息和日期时间。在我的localhost中它保存了正确的时间(即)当前系统日期时间。
但问题是我将我的代码添加到服务器中它节省了服务器时间而不节省发送时间。并且聊天应用程序对于global.how来说是常见的管理时间吗?
Step 1: I am Working on chat application. I saved the message and datetime in database table. In my localhost it saves correct time (ie) current system datetime.
but problem is i added my code into server it saves the server time not saving the sending time. And also chat application is common for global.how to manage the time ?
推荐答案
请点击链接
http://stackoverflow.com/questions/10211145/getting-current-日期和时间在javascript [ ^ ]
谢谢
Please follow the link
http://stackoverflow.com/questions/10211145/getting-current-date-and-time-in-javascript[^]
Thanks
这篇关于如何在数据库表中保存客户端日期时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文