summaryrefslogtreecommitdiffstats
path: root/src/json.c
diff options
context:
space:
mode:
authorJose M. Guisado <jguisado@soleta.eu>2021-03-15 12:15:19 +0100
committerOpenGnSys Support Team <soporte-og@soleta.eu>2021-03-15 12:17:56 +0100
commit41bc66d0e7465ff8f3b59fcfd11079795608724b (patch)
tree8d681558fdbcdafdf9937cb11f6852b948bca2da /src/json.c
parent8b7b5f33a126e3884ec540d79256a4cd704a4887 (diff)
#997 Fix og_tm_hours_mask
Tests for e68fefe were made after 00pm (12:00) so we did not cover <12:00 cases for immediate commands that are logged (scheduled for the exact moment they are processed and ignored the fact they are stale so they are executed right away) In addition, libdbi was complaining about the data type used to represent the hours, they were not being inserted properly. From syslog: failed to query database (og_dbi_schedule_create:3288) 1264: Out of range value for column 'horas' at row 1 Fix og_tm_hours_mask so <12:00 immediate schedule is handled correctly. Change return type to uint16_t, as the 'hours' column type is smallint(4) Fixes e68fefe ("#997 Set stale check flag when processing schedule/create")
Diffstat (limited to 'src/json.c')
0 files changed, 0 insertions, 0 deletions