search

Home  >  Q&A  >  body text

javascript - The value when sqlite saves the timestamp and then retrieves it is wrong

Saved code

Value in sqlite

The value obtained by the front end

The data type stored in sqlite has been tried. Int date datetime is like this. When text is saved, it is taken out.

#What is the problem...

女神的闺蜜爱上我女神的闺蜜爱上我2708 days ago1073

reply all(1)I'll reply

  • ringa_lee

    ringa_lee2017-07-05 11:10:12

    Obviously it’s a backend (server) problem. It’s possible that sqlite does not support millisecond-level timestamps

    You need to divide the result by 1000 and ignore the decimal part

    reply
    0
  • Cancelreply