I need to set default time to now
but don't want the time to appear.
How could I set the default timestamp with only the date, and exclude the time?
class User(db.Model, UserMixin):
id = db.Column(db.Integer, primary_key=True)
username = db.Column(db.String(64), unique=True, index=True)
email = db.Column(db.String(64), unique=True, index=True)
password = db.Column(db.String(128))
# phone = db.Column(db.String(16), unique=True, index=True)
bio = db.Column(db.String(64))
create_time = db.Column(db.DateTime(64), default=datetime.utcnow)