fixed timezone and textarea default width
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 2.4.4-stable+timestamp.2013.03.18.16.59.25
|
Version 2.4.4-stable+timestamp.2013.03.18.17.33.31
|
||||||
|
|||||||
@@ -102,6 +102,7 @@ td.w2p_fl,td.w2p_fc {padding:0;}
|
|||||||
==============================================================*/
|
==============================================================*/
|
||||||
|
|
||||||
/* because web2py handles this via js */
|
/* because web2py handles this via js */
|
||||||
|
textarea { width:90%}
|
||||||
.hidden{visibility:visible;}
|
.hidden{visibility:visible;}
|
||||||
/* right folder for bootstrap black images/icons */
|
/* right folder for bootstrap black images/icons */
|
||||||
[class^="icon-"],[class*=" icon-"]{
|
[class^="icon-"],[class*=" icon-"]{
|
||||||
|
|||||||
@@ -102,6 +102,7 @@ td.w2p_fl,td.w2p_fc {padding:0;}
|
|||||||
==============================================================*/
|
==============================================================*/
|
||||||
|
|
||||||
/* because web2py handles this via js */
|
/* because web2py handles this via js */
|
||||||
|
textarea { width:90%}
|
||||||
.hidden{visibility:visible;}
|
.hidden{visibility:visible;}
|
||||||
/* right folder for bootstrap black images/icons */
|
/* right folder for bootstrap black images/icons */
|
||||||
[class^="icon-"],[class*=" icon-"]{
|
[class^="icon-"],[class*=" icon-"]{
|
||||||
|
|||||||
@@ -102,6 +102,7 @@ td.w2p_fl,td.w2p_fc {padding:0;}
|
|||||||
==============================================================*/
|
==============================================================*/
|
||||||
|
|
||||||
/* because web2py handles this via js */
|
/* because web2py handles this via js */
|
||||||
|
textarea { width:90%}
|
||||||
.hidden{visibility:visible;}
|
.hidden{visibility:visible;}
|
||||||
/* right folder for bootstrap black images/icons */
|
/* right folder for bootstrap black images/icons */
|
||||||
[class^="icon-"],[class*=" icon-"]{
|
[class^="icon-"],[class*=" icon-"]{
|
||||||
|
|||||||
+5
-5
@@ -2229,14 +2229,14 @@ class IS_DATE(Validator):
|
|||||||
def __call__(self, value):
|
def __call__(self, value):
|
||||||
ovalue = value
|
ovalue = value
|
||||||
if isinstance(value, datetime.date):
|
if isinstance(value, datetime.date):
|
||||||
if timezone is not None:
|
if self.timezone is not None:
|
||||||
value = value - datetime.timedelta(seconds=self.timezone*3600)
|
value = value - datetime.timedelta(seconds=self.timezone*3600)
|
||||||
return (value, None)
|
return (value, None)
|
||||||
try:
|
try:
|
||||||
(y, m, d, hh, mm, ss, t0, t1, t2) = \
|
(y, m, d, hh, mm, ss, t0, t1, t2) = \
|
||||||
time.strptime(value, str(self.format))
|
time.strptime(value, str(self.format))
|
||||||
value = datetime.date(y, m, d)
|
value = datetime.date(y, m, d)
|
||||||
if timezone is not None:
|
if self.timezone is not None:
|
||||||
value = value - datetime.timedelta(seconds=self.timezone*3600)
|
value = value - datetime.timedelta(seconds=self.timezone*3600)
|
||||||
return (value, None)
|
return (value, None)
|
||||||
except:
|
except:
|
||||||
@@ -2254,7 +2254,7 @@ class IS_DATE(Validator):
|
|||||||
if year < 1900:
|
if year < 1900:
|
||||||
year = 2000
|
year = 2000
|
||||||
d = datetime.date(year, value.month, value.day)
|
d = datetime.date(year, value.month, value.day)
|
||||||
if timezone is not None:
|
if self.timezone is not None:
|
||||||
d = d + datetime.timedelta(seconds=self.timezone*3600)
|
d = d + datetime.timedelta(seconds=self.timezone*3600)
|
||||||
return d.strftime(format)
|
return d.strftime(format)
|
||||||
|
|
||||||
@@ -2303,7 +2303,7 @@ class IS_DATETIME(Validator):
|
|||||||
(y, m, d, hh, mm, ss, t0, t1, t2) = \
|
(y, m, d, hh, mm, ss, t0, t1, t2) = \
|
||||||
time.strptime(value, str(self.format))
|
time.strptime(value, str(self.format))
|
||||||
value = datetime.datetime(y, m, d, hh, mm, ss)
|
value = datetime.datetime(y, m, d, hh, mm, ss)
|
||||||
if timezone is not None:
|
if self.timezone is not None:
|
||||||
value = value - datetime.timedelta(seconds=self.timezone*3600)
|
value = value - datetime.timedelta(seconds=self.timezone*3600)
|
||||||
return (value, None)
|
return (value, None)
|
||||||
except:
|
except:
|
||||||
@@ -2322,7 +2322,7 @@ class IS_DATETIME(Validator):
|
|||||||
year = 2000
|
year = 2000
|
||||||
d = datetime.datetime(year, value.month, value.day,
|
d = datetime.datetime(year, value.month, value.day,
|
||||||
value.hour, value.minute, value.second)
|
value.hour, value.minute, value.second)
|
||||||
if timezone is not None:
|
if self.timezone is not None:
|
||||||
d = d + datetime.timedelta(seconds=self.timezone*3600)
|
d = d + datetime.timedelta(seconds=self.timezone*3600)
|
||||||
return d.strftime(format)
|
return d.strftime(format)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user