mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-10-12 16:11:59 -05:00
1 parent
ac37d60c03
commit
01801e4acb
1 file changed
+3
-1
@@ -137,7 +137,9 @@ class RoleView(PGChildNodeView):
|
||||
# Make date explicit so that it works with every
|
||||
# postgres database datestyle format
|
||||
try:
|
||||
if data[u'rolvaliduntil'] is not None:
|
||||
if data[u'rolvaliduntil'] is not None and \
|
||||
data[u'rolvaliduntil'] != '' and \
|
||||
len(data[u'rolvaliduntil']) > 0:
|
||||
date = datetime.datetime.strptime(
|
||||
data[u'rolvaliduntil'], '%m/%d/%Y'
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user