wokerrrrrrrrr's recent timeline updates
wokerrrrrrrrr

wokerrrrrrrrr

V2EX member #651426, joined on 2023-09-27 16:42:19 +08:00
wokerrrrrrrrr's recent replies
Feb 11, 2025
Replied to a topic by CuChulainn 酷工作 [招聘] 杭州滨江-Golang2 枚-15~25k
考虑 java 转 go 不?三年 java 开发经验
May 15, 2024
Replied to a topic by 3country 健康 有颈椎不舒服的老哥吗?
@waitMeOY #14 最普通的 X 光片就行,学名忘叫啥了
@wokerrrrrrrrr 前后端传参约定好用 ISO 标准的时间字符串或者时间戳,时区就错不了
我的实践是这样的:
1.后端 java 代码统一使用 java8 的 Instant 时间类
2.数据库 mysql 统一用 bigint 存储时间戳
然后剩下的就是各种转换的事儿了,根据前端需要,既可以返回时间戳,也可以返回带时区的时间格式字符串( ISO 标准那种)。
前端具体展示什么时区,从返回数据里再转就行了
老哥大气,蹲一个
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4125 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: fd5f84ef · 29ms · UTC 05:17 · PVG 13:17 · LAX 22:17 · JFK 01:17
♥ Do have faith in what you're doing.