Frozen day in Django form
I use django, nginx, gunicorn. Please help, this form records the date of record creation. For a long time everything worked fine, but recently the date was fixed at 2024-10-07, although it was 2024-10-09. The time on the server is correct. Restarting gunicorn helped, but now it records 2024-10-09. Can you indicate the reason for the failure?
class MyForm(forms.ModelForm):
create_date = forms.DateField(input_formats=['%Y-%m-%d'],
widget=forms.DateInput(attrs={'type': 'date', 'value': (datetime.today() + timedelta(hours=3)).strftime('%Y-%m-%d'), 'readonly': True}),
label='Create date')
product_cost = forms.IntegerField(label='Cost')