From 146c790039bbbe294a4e124029732520aedab504 Mon Sep 17 00:00:00 2001
From: Mindo Choi <141867620+apchoiCMD@users.noreply.github.com>
Date: Tue, 19 Dec 2023 16:50:45 -0500
Subject: [PATCH] Fix test reference mismatch (#786)
#### What this PR fixed
- Two new ioda converters that work with `mktime` in a C library
function that need to ensure consistent behavior across different
machines with different time zones (e.g., Orion (CST) and Hera (UTC))
- Set the time zone explicitly using the `tzset` function with UTC
time zone
- Used ```oops/utils``` to make dateime to Julian date so now code is a
lot simpler than before
Fixed https://github.com/NOAA-EMC/GDASApp/issues/783
---------
Co-authored-by: Guillaume Vernieres
---
utils/obsproc/IcecAmsr2Ioda.h | 37 +++++++++++++++++++--------
utils/obsproc/Smap2Ioda.h | 29 +++++++++++++++------
utils/test/CMakeLists.txt | 22 ++++++++--------
utils/test/testref/icecamsr2ioda.test | 6 ++---
utils/test/testref/rads2ioda.test | 2 +-
utils/test/testref/smap2ioda.test | 6 ++---
6 files changed, 64 insertions(+), 38 deletions(-)
diff --git a/utils/obsproc/IcecAmsr2Ioda.h b/utils/obsproc/IcecAmsr2Ioda.h
index 61bacfade..e2d0b2e5d 100644
--- a/utils/obsproc/IcecAmsr2Ioda.h
+++ b/utils/obsproc/IcecAmsr2Ioda.h
@@ -1,9 +1,11 @@
#pragma once
#include
+#include
#include
#include