Fixes a bug related with sql server
This commit is contained in:
@@ -1,8 +1,9 @@
|
|||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
import datetime
|
|
||||||
import copy
|
|
||||||
|
|
||||||
VERSION = "0.0.11"
|
import copy
|
||||||
|
import datetime
|
||||||
|
|
||||||
|
VERSION = "0.0.12"
|
||||||
|
|
||||||
|
|
||||||
class classproperty(object):
|
class classproperty(object):
|
||||||
@@ -109,13 +110,13 @@ class Q(QMixin):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def date_format(self):
|
def date_format(self):
|
||||||
if self._mode == 'SQLSERVER':
|
if self._mode == 'SQL_SERVER':
|
||||||
return "%Y-%d-%m"
|
return "%Y-%d-%m"
|
||||||
return "%Y-%m-%d"
|
return "%Y-%m-%d"
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def datetime_format(self):
|
def datetime_format(self):
|
||||||
if self._mode == 'SQLSERVER':
|
if self._mode == 'SQL_SERVER':
|
||||||
return "%Y-%d-%m %H:%M:%S"
|
return "%Y-%d-%m %H:%M:%S"
|
||||||
return "%Y-%m-%d %H:%M:%S"
|
return "%Y-%m-%d %H:%M:%S"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user