Comments (2)
Also while reading the code for fresnsTimeByTimezone()
, I am not sure I understand what we are trying to do here. If MySql returns string without timezone in fresnsDatabaseCurrentDateTime()
, is this function working as expected?
from fresns.
Also while reading the code for
fresnsTimeByTimezone()
, I am not sure I understand what we are trying to do here. If MySql returns string without timezone infresnsDatabaseCurrentDateTime()
, is this function working as expected?
DateHelper::fresnsTimeByTimezone($time, $timezone);
https://fresns.org/supports/helpers/date.html#get-time-by-specified-timezone
For example
If $time is the time at 10:30 and the system timezone is +8, then 10:30 is the current time in the +8 timezone.
$timezone is the timezone you want to use, for example +2 timezone, then you will get 04:30 as a result.
This is so that people in different time zones will see the time value as the current time on their own clocks.
The fresnsDatabaseCurrentDateTime error affects this functionality.
Chinese Reply
比如 $time 是 10:30 时间,系统时区是 +8 时区,那么 10:30 则是当前 +8 时区的时间。
$timezone 是你想要使用的时区,比如 +2 时区,那么你将得到 04:30 这个结果。
这个功能是为了让不同时区的人,看到的时间值都是当前自己时钟的时间。
fresnsDatabaseCurrentDateTime() 报错会影响该功能。
from fresns.
Related Issues (20)
- fontawesome 图标对齐问题 HOT 2
- 3.0 给存储设置新增1个APPID吧
- 3.0 政策设置->政策内容 支持1下变量 HOT 1
- 不为别的,就是来表达下,真优秀 HOT 7
- 3.0 给 编辑器增加1个 XXX秒 已保存
- 内容详情接口增加1个参数
- 3.0 gei roles 表增加1个字段 HOT 1
- 3.0 增加后台增加 APP下载设置 HOT 2
- 关于 createAccount 命令字 修改建议
- 用户昵称显示css建议 HOT 1
- 用户表增加1个字段 HOT 1
- 增加1个设置 HOT 1
- fresns 下个版本 客户端设置 增加1个 更新描述 如何 HOT 1
- 扩展功能信息 是否能单独 弄个接口 HOT 1
- QQ互联 增加一个 移动开放平台 HOT 1
- 内容小组 3.0 是否加 1个批量设置
- 419 expired HOT 2
- Feature request HOT 1
- Curl error after installing Moments HOT 1
- [bug] - database error on install defaultStringLength HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fresns.