weixin_33698823 2014-08-27 06:55 采纳率: 0%
浏览 4

用户端分别时间

Hello I am trying to make a web application where users can ask question about their related problems:

The function in which I am stuck is that how can the end users get to know about the timing timing of thew question in their respective time zones?

For example I sitting in Kolkata/Asia time zone posted this question right now and at the same time a person from Western Hemisphere sees the question at the same time saying that this question was posted just 1 min ago.

or suppose a person sees it after 26 hours so it will show that it was posted 1 day 2 hours ago or it will show a respective date in respect to its local time zone for example , posted on 12th Aug, 2014 in Asia/Kolkata hence it should the proper date in respected usere's local time zone

Just for Note: I am making this web project using php, mysqli, js, ajax

  • 写回答

1条回答 默认 最新

  • weixin_33696822 2014-08-27 06:58
    关注

    Use either standard time like UTC, or server time. It doesn't matter where I am and what time it is now here, nor where you are and what time it is there: it has been several minutes between the time the server accepted your question, and the time it received my answer.

    评论

报告相同问题?

悬赏问题

  • ¥15 使用C#,asp.net读取Excel文件并保存到Oracle数据库
  • ¥15 C# datagridview 单元格显示进度及值
  • ¥15 thinkphp6配合social login单点登录问题
  • ¥15 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配