diff --git a/modules/util/viirs_l1b_l2.py b/modules/util/viirs_l1b_l2.py
index 6a923e101a17a208d83c3050449917d5e4af552b..e1051f3129b88b7f612aea0d795e9d08e1e26206 100644
--- a/modules/util/viirs_l1b_l2.py
+++ b/modules/util/viirs_l1b_l2.py
@@ -224,7 +224,7 @@ def scan(directory):
 
     for idx, file in enumerate(files):
         h5f = h5py.File(file, 'r')
-        ts = data_src.ftimes[0][0]
+        ts = data_src.ftimes[idx][0]
         try:
             solzen = get_grid_values_all(h5f, 'solar_zenith_angle')
         except Exception as e: