diff options
| author | Christoph Berg <myon@debian.org> | 2026-10-09 14:12:35 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2026-10-09 14:12:35 +0200 |
| commit | ffc62c792c9a5196cb4ce7a353287dfe20db6524 (patch) | |
| tree | 1269efa852935b183daae4bb33a58d1b4d2ffb53 /lib/streaming_apply.f90 | |
| parent | 059831534c7e884f0a607ed86b582fd00d821731 (diff) | |
New upstream version 3.3.0~beta1+dfsgupstream/3.3.0_beta1+dfsg
Diffstat (limited to 'lib/streaming_apply.f90')
| -rw-r--r-- | lib/streaming_apply.f90 | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/streaming_apply.f90 b/lib/streaming_apply.f90 index 72feda74..0a507481 100644 --- a/lib/streaming_apply.f90 +++ b/lib/streaming_apply.f90 @@ -281,7 +281,16 @@ contains ! Per-period UTC. Producer sends a fresh nutc in each ! period's configure frame so streaming_emit_decode can format the time ! field correctly (instead of "000000"). - if (in_cfg%nutc_set) params%nutc = in_cfg%nutc + if (in_cfg%nutc_set) then + params%nutc = in_cfg%nutc + ! Long-period FST4 numeric UTC also accepts legacy HHMM; ISO UTC is always HHMMSS. + if ((io_mode.eq.240.or.io_mode.eq.241.or.io_mode.eq.242).and.io_TRperiod.ge.60.and. & + params%nutc.le.2359) & + params%nutc=100*params%nutc + ! Legacy numeric Q65 times may be HHMM. + if (io_mode.eq.66.and.io_TRperiod.ge.60.and.params%nutc.le.2359) & + params%nutc=100*params%nutc + endif ! Phase 8 (RFC v1 §6.3/§4.1): utc (ISO "HH:MM:SS") is a SECOND route to nutc, ! kept alongside the legacy int nutc above. Applied AFTER nutc so utc WINS when ! a frame carries both (the richer ISO form). The apply order encodes the |
