Laravel系统的乡村时间
我在一个网站在一个国家开放时需要我想要的课程系统,该课程的时间是用户在用户所在的国家的实时出现的
I work on a course system that has course times I want when the site is opened in a country, the time of the course appears for the user in the real time of the country in which the user is located
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
将用户时间转换为UTC使用,在您的控制器方法中使用Laravel代码后使用UTC的
时间将UTC时间转换为用户时间
To convert user time to UTC use following laravel code in your controller method
Convert UTC time to User time