Alipay small program back-end error time new Date

  Today, a problem encountered in the project, to the back-end to a time in the format 2019-11-23 11:00:00 date format, the needs of small programs is to do a countdown function. Then you need to convert the format of the data, the test was found in the Android function under normal, but on ios test time format will be converted to NaN. Lead to functional errors, and device debugging this function normally. After other colleagues suggest that the problem also occurs in the micro-letter applet. The solutions for yyyy-MM-dd HH: mm: ss format to date yyyy / MM / dd HH: mm: ss format, to date, or it may be more convenient to directly output timestamp.

Guess you like

Origin www.cnblogs.com/codebloges/p/11920892.html