I'm retrieving data from database and sending it in json to the front end. Now the time is stored as UTC in database, so I want to change the timezone and its formatting before I send the data in json to front end. Changing/converting the time in front end is not an option.

What should I be doing?

Note: I am able to convert to appropriate timezone and formatting in Templates. However I want to do it now in views.

```py
def fetchinfo(request):
    uid = int(request.user.id)
    data =                                                                                                                          UserLog.objects.filter(user_id=uid).values('event_id__description','time','ip_address')
    return JsonResponse({'status':'success','data':list(data),})

```