当前位置:网站首页>Time conversion error
Time conversion error
2022-07-05 12:36:00 【Hua Li Hu Shao】
I encountered a problem this morning The business is Query the database to get the data then Convert the timestamp in the data Deposit in map Back in
No problem offline, no problem online Incorrect time conversion ··· such as Should be 00:10 Just turn it around 14:10…
Print
dateTime Is the timestamp in the database
Log.info(dateTime +“ = ”+ new Date(dateTime)+ new SimpleDateformatter(“HH:mm”))
What's printed out is
1631465400000 = Sun Sep 12 16:50:00 UTC 2021 = 16:50
The reason is that the time of the server itself is abnormal ·· …
边栏推荐
- Four operations and derivative operations of MATLAB polynomials
- Redis's memory elimination mechanism, read this article is enough.
- MySQL regular expression
- Making and using the cutting tool of TTF font library
- Sqoop import and export operation
- Distributed solution - completely solve website cross domain requests
- Solution to order timeout unpaid
- Implementing Yang Hui triangle with cyclic queue C language
- Take you hand in hand to develop a service monitoring component
- How can beginners learn flutter efficiently?
猜你喜欢
ZABBIX customized monitoring disk IO performance
Understand kotlin from the perspective of an architect
Add a new cloud disk to Huawei virtual machine
Flutter2 heavy release supports web and desktop applications
What is digital existence? Digital transformation starts with digital existence
Learn memory management of JVM 01 - first memory
Simple production of wechat applet cloud development authorization login
JDBC -- use JDBC connection to operate MySQL database
Redis highly available sentinel mechanism
Implementing Yang Hui triangle with cyclic queue C language
随机推荐
A guide to threaded and asynchronous UI development in the "quick start fluent Development Series tutorials"
Solve the problem of cache and database double write data consistency
Image hyperspectral experiment: srcnn/fsrcnn
Average lookup length when hash table lookup fails
Matlab label2idx function (convert the label matrix into a cell array with linear index)
MySQL transaction
Preliminary exploration of basic knowledge of MySQL
Principle of universal gbase high availability synchronization tool in Nanjing University
Take you two minutes to quickly master the route and navigation of flutter
Just a coincidence? The mysterious technology of apple ios16 is actually the same as that of Chinese enterprises five years ago!
Distributed solution - Comprehensive decryption of distributed task scheduling platform - xxljob scheduling center cluster
ZABBIX agent2 monitors mongodb nodes, clusters and templates (official blog)
Want to ask, how to choose a securities firm? Is it safe to open an account online?
MySQL splits strings for conditional queries
Get the variable address of structure member in C language
UNIX socket advanced learning diary - advanced i/o functions
End to end neural network
How to recover the information server and how to recover the server data [easy to understand]
Master the new features of fluent 2.10
ZABBIX monitors mongodb (template and deployment operations)