dongmozhui3805
dongmozhui3805
2018-01-30 06:36

如何在php中设置印度标准时间?

  • date
  • php
  • time
  • sql

I'm using PHP codeigniter so here I want to get current national time. I tried NOW() in my sql code but when server change the location the server time changes. if I give date() it will take our system current time I think. in date()case if some user have some wrong date time then it will store that wrong time. So how can I solve this problem.

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

5条回答

为你推荐