Hi
I want to look for a specific proposal when I have a timestamp from the automatic notification emails,
In the email I have this field
NOW_TMS 1707039969
And when I look in the json for that proposal I can see that value several different places
“date_validation”: 1707039969,
“date_modification”: 1707039969,
“datev”: 1707039969,
The other date fields in the json are:
“date_creation”: 1707039934,
“specimen”: 0,
“socid”: “100”,
“datec”: 1707039934,
“date”: 1707001200,
“datep”: 1707001200,
“fin_validite”: 1706953534,
but I can not find all those in the database table or I can not use them in the sqlfilter
| tms | timestamp | YES | | current_timestamp() | on update current_timestamp() |
| datec | datetime | YES | | NULL | |
| datep | date | YES | | NULL | |
| fin_validite | datetime | YES | | NULL | |
| date_valid | datetime | YES | | NULL | |
| date_signature | datetime | YES | | NULL | |
| date_cloture | datetime | YES | | NULL | |
I’ve tried with these sqlfilters
(t.datec:=:1707039934:) - which works but find nothing
(t.date:=:1707001200:) - error Unknown column ‘t.date’ in ‘where clause’
(t.datep:=:1707001200:) - which also works, but doesn’t find anything
(t.datev:=:1707039969:) - error Unknown column ‘t.datev’ in ‘where clause’
(t.tms:<:1707001200:) - which works but doesn’t find anything
Do I need to use non epoch time to get my data?
MariaDB [dolidb]> select rowid, tms, datec, datep, fin_validite, date_valid, date_signature, date_cloture from llx_propal where rowid=432;
±------±--------------------±--------------------±-----------±--------------------±--------------------±---------------±-------------+
| rowid | tms | datec | datep | fin_validite | date_valid | date_signature | date_cloture |
±------±--------------------±--------------------±-----------±--------------------±--------------------±---------------±-------------+
| 432 | 2024-02-04 10:46:09 | 2024-02-04 10:45:34 | 2024-02-04 | 2024-02-03 10:45:34 | 2024-02-04 10:46:09 | NULL | NULL |
±------±--------------------±--------------------±-----------±--------------------±--------------------±---------------±-------------+