Converting unix timestamp stored as bigint to readable date time
We are storing the timestamp as a bigint. In the SQL query trying to convert this timestamp to date time.
have used the function FROM_UNIXTIME but it just returns a NULL value.
Answer Answered by Ian Gilfillan in this comment.
Assuming you meant to store a timestamp equivalent to 04/02/47737, this is due to the Unix timestamp limit. See https://en.wikipedia.org/wiki/Year_2038_problem
Currently this is not scheduled to be fixed in MariaDB - see MDEV-341.
Content reproduced on this site is the property of its respective owners,
and this content is not reviewed in advance by MariaDB. The views, information and opinions
expressed by this content do not necessarily represent those of MariaDB or any other party.