Jump to content

Having trouble concatenating


leke

Recommended Posts

No error returned, but the date returned is just January 01st 1970 - 12:00am (without UTC). If I remove the . ' UTC', the correct date is shown.

 

Here is some more code that is related to the date...


// Format the time/Date
date_default_timezone_set('UTC');
$inputTime = date('c');
$inputTime = $inputTime . ' (UTC)';

// Send all data so far, to an array.
$entry_array = array();
array_push($entry_array, $inputTime, $userName, $message_br);

// write the array to CSV file.
$fp = fopen('messages.txt', 'a');
fputcsv($fp, $entry_array, "|");
fclose($fp);

session_destroy();

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.