This code grabs 8 channel analog value and writes to SD Card. All well but when i open the SD card in WIN10 laptop I see the file creation time as a fixed date time. ( see the image below ) But inside the log file each record has the correct time stamp.

Any idea why the files have a uniform date / time stamp of creation ?

Code:
void readAnalogValues()                            // Function to read analog values / scale them / write them to SD File 
{
  if ( millis() - readAdcMs > readAdcInterval ) {

    readAdcMs = millis();

     sdFile = SD.open(currentFile, FILE_WRITE);   // Open the SDfile for the next session 
     if (!sdFile ) {
      Serial.println(" Error Opening SD Card"  );
      digitalWrite( LED, HIGH);
      while (1 == 1);                              // Error opening SD File...Wait for reset
     }
 
      sdFile.print(now());                         // Start writing to the SD file Date&Time in Epoch and then 8 channel values...
      sdFile.print(',');
      for (int i = 0 ; i < 8; i++)
      {
        voltage[i] = adc->adc0->analogRead(readPin[i]) * resolution ;
        sdFile.print(voltage[i], 3);
        delay(2);
        if (i < 7)
          sdFile.print(',');
      }
      sdFile.println();
      
      sdFile.close();                              // Done writing. Close the SD File..
    }
  }
Click image for larger version. 

Name:	Log File folder.PNG 
Views:	9 
Size:	20.2 KB 
ID:	21220