Monthly files with time shift

Hi everyone,

am running an interannual CROCO simulation (v2.1.0) using run_croco_inter.bash with monthly outputs

The relevant output settings are:

ND_AVG = 1
ND_HIS = -1
ND_RST = -1
RSTFLAG = 1

However, I noticed that the daily records stored in the monthly croco_avg files do not exactly match the calendar month boundaries.

For example:

croco_avg_Y2017M01.nc

Start: 2017-01-01
End:   2017-01-30

croco_avg_Y2017M02.nc

Start: 2017-01-31
End:   2017-03-01

Similarly, the restart file written at the end of January is:

croco_rst_Y2017M01.nc

Time: 2017-01-31

I have already checked and they are no missing days or no duplicated days.
The issue seems to be only the way the daily averaged records are distributed among the monthly files.
Is this expected behaviour for run_croco_inter.bash, or could I be missing a configuration related to the averaging or restart procedure?
Thank you very much for your help.