Project

General

Profile

Revision 88c9eb8e

ID88c9eb8ef30186a2af2e47b28e1bd62e4145f853
Parent f2e30877
Child 5e643fc4

Added by Francois POIROTTE about 14 years ago

Mini-corrections pour la recherche par dates dans VigiBoard (pour être plus laxiste sur les entrées).

git-svn-id: https://vigilo-dev.si.c-s.fr/svn@3029 b22e2e97-25c9-44ff-b637-2e5ceca36478

View differences:

development.ini
22 22
[app:main]
23 23
use = egg:vigiboard
24 24

  
25
db_basename=vigilo_
26
password_hashing_function=md5
25
db_basename=
26
; vigilo_
27
;password_hashing_function=md5
28
password_hashing_function=
27 29
lang=fr
28 30
use_kerberos=False
29 31
help_link=http://foo.bar/help
vigiboard/controllers/root.py
157 157
                '%%%s%%' % trouble_ticket))
158 158

  
159 159
        if from_date:
160
            search['from_date'] = from_date
160
            search['from_date'] = from_date.lower()
161 161
            try:
162 162
                # TRANSLATORS: Format de date et heure.
163 163
                from_date = datetime.strptime(
......
169 169
                aggregates.add_filter(CorrEvent.timestamp_active >= from_date)
170 170

  
171 171
        if to_date:
172
            search['to_date'] = to_date
172
            search['to_date'] = to_date.lower()
173 173
            try:
174 174
                # TRANSLATORS: Format de date et heure.
175 175
                to_date = datetime.strptime(
vigiboard/i18n/fr_FR/LC_MESSAGES/vigiboard.po
76 76
#: vigiboard/tests/functional/test_search_form_misc.py:129
77 77
#, python-format
78 78
msgid "%Y-%m-%d %I:%M:%S %p"
79
msgstr "%d-%m-%Y %I:%M:%S"
79
msgstr "%d-%m-%Y %H:%M:%S"
80 80

  
81 81
#: vigiboard/controllers/root.py:272
82 82
msgid "No masked event or access denied"

Also available in: Unified diff