Fixed saving of timestamp

This commit is contained in:
Eugene Timokhov 2016-03-18 13:48:47 +03:00
parent 166e6e89a5
commit f3ccb108cd
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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