Click here to Skip to main content
15,301,841 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello I am trying to create a website that saves the name and time when a person clocks in to a database, but the time that was stored is off by 8 hours.

Here is the code:
from django.db import models
from datetime import datetime, date

#Create your models here.

class Name(models.Model):
    name = models.CharField(max_length=200)
    timeIn = models.DateTimeField(auto_now_add=True, auto_now=False, blank=True)

    def __str__(self):

What I have tried:

I have tried using default = but it still does now work.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900