i try to generate a primary key using date
and time
with php code.
but when i save the id change to 2147483647
.
my code to get date and time is.
$dt = new DateTime("now", new DateTimeZone('Asia/Jakarta'));
then i print it to input form with readonly
<input type="text" class="form-control" id="idpost" name="idpost" value="<?php echo $dt->format('dmHis'); ?>" form="add_post" readonly>