Fixed saving of timestamp
This commit is contained in:
parent
166e6e89a5
commit
f3ccb108cd
|
@ -95,7 +95,7 @@ def saveChart(clientId, userId, chartName, symbol, resolution, content):
|
|||
def rewriteChart(clientId, userId, chartId, chartName, symbol, resolution, content):
|
||||
try:
|
||||
chart = models.Chart.objects.get(ownerSource = clientId, ownerId = userId, id = chartId)
|
||||
chart.lastModified = datetime.utcnow()
|
||||
chart.lastModified = datetime.now()
|
||||
chart.content = content
|
||||
chart.name = chartName
|
||||
chart.symbol = symbol
|
||||
|
|
|
@ -25,7 +25,7 @@ DATABASES = {
|
|||
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
|
||||
# although not all choices may be available on all operating systems.
|
||||
# In a Windows environment this must be set to your system time zone.
|
||||
TIME_ZONE = 'America/Chicago'
|
||||
TIME_ZONE = 'Etc/UTC'
|
||||
|
||||
# Language code for this installation. All choices can be found here:
|
||||
# http://www.i18nguy.com/unicode/language-identifiers.html
|
||||
|
|
Loading…
Reference in New Issue