Get UTC time from stations table.
This commit is contained in:
		@@ -128,7 +128,7 @@ def index():
 | 
				
			|||||||
    # Convert unix time to datetime on the fly because I'm lazy right now
 | 
					    # Convert unix time to datetime on the fly because I'm lazy right now
 | 
				
			||||||
    for station in stations:
 | 
					    for station in stations:
 | 
				
			||||||
        if station['last_heard_unix'] != None:
 | 
					        if station['last_heard_unix'] != None:
 | 
				
			||||||
            station['last_heard'] = datetime.datetime.fromtimestamp(station['last_heard_unix'])
 | 
					            station['last_heard'] = datetime.datetime.utcfromtimestamp(station['last_heard_unix'])
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    return render_template('index.html',
 | 
					    return render_template('index.html',
 | 
				
			||||||
                            station_call = config['Settings']['station_call'],
 | 
					                            station_call = config['Settings']['station_call'],
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user