Index: trunk/DataCheck/Sourcefile.sh
===================================================================
--- trunk/DataCheck/Sourcefile.sh	(revision 18783)
+++ trunk/DataCheck/Sourcefile.sh	(revision 18784)
@@ -576,5 +576,5 @@
             then
                printprocesslog "DEBUG getdates - get the current night."
-               dates=( `date +%Y/%m/%d --date="-12hour"` )
+               dates=( `date +%Y/%m/%d --date="-19hour"` )
             fi
          fi
@@ -620,4 +620,5 @@
    if ! [ -e $1 ]
    then 
+      filenight=`basename $1 | cut -c 1-8`
       # treat raw files differently than auxfiles
       checkraw=`echo $1 | grep -E -o raw`
@@ -633,5 +634,4 @@
       fi
       # only for aux files check of DB is needed
-      filenight=`basename $1 | cut -c 1-8`
       # treat ratescan files 
       checkratescan=`echo $1 | grep -E -o RATE_SCAN_DATA`
