Unable to convert to datetime using the format 'dd-MMM-yyyy', EDF file

,

Hi Raymundo,

I did as you suggested, and now the BEM surfaces are being generated successfully. Thank you very much for your help. However, I was wondering if you could help me understand an issue I encounter while doing so. When I try to import an EDF raw file, I get a warning that says:

EDF > Warning: Physical minimum larger than physical maximum for channel …

(this appears for every channel)

Then, from the GUI, I receive the following error:

Error: Line 261: datetime (line 261)
** Unable to convert 'X' to datetime using the format 'dd-MMM-yyyy'. If the date/time text contains day, month, or time zone names in a language foreign to the 'en_US' locale, those might not be recognized. You can specify a different locale using the 'Locale' parameter.
**

I suspect it may be related to my file, since I was able to import the EEG file from the sample_epilepsy folder without any issues. However, I do not understand why this error is occurring, as I have been able to import this same file in the past without any problems. Also, I am not sure whether this is relevant, but I am using MATLAB 2025a on a MacBook Pro with an Apple Silicon M4 chip.

Hello,

This is linked to our recent update, reading the time of acquisition from the file. Sorry for the inconvenience.

Could you share the file with us so we can fix the file reader?

Edouard

@Raymundo.Cassani, i added a proposed fix here: [acquisition date] Avoid error when reader date by Edouard2laire · Pull Request #887 · brainstorm-tools/brainstorm3 · GitHub

I have just updated my brainstorm to 13-Feb-2026 but this bug is still there. Not able to import raw seeg data of edf format. Can anyone please help.

After I updated to 13-Feb-2026 version, brainstorm became unable to review EEG data of edf format. Can anyone please help.

I never have any issue like this before.

Here are the error messeges:

Found characters the default encoding is unable to represent


** Error: Line 651: エラー: datetime (行 651)
** 形式 'dd-MMM-yyyy' を使用して '03-FEB-2026' を datetime に変換できません。日付/時刻のテキストに 'ja_JP' ロケールと異なる言語の曜日、月またはタイム ゾーンの名前が含まれている場合、それらは認識されないことがあります。'Locale' パラメーターを使用して異なるロケールを指定できます。
**
** Call stack:
** >datetime.m>datetime.datetime at 651
** >in_fopen_edf.m at 211
** >in_fopen.m at 109
** >import_raw.m at 132
** >bst_call.m at 28
** >tree_callbacks.m>@(h,ev)bst_call(@import_raw,,,iSubject) at 685
**


Hello Raymundo,

I have tried your suggested fix [acquisition date] Avoid error when reader date #887.

However, it did not help to solve the issue.

Could you please help?

Thank you

Hi @hmkhoo, this will be solved promptly

@hmkhoo, @claudiarodgadea
Please update your Brainstorm instance to 16-Feb-2026

Thank you !

Hi Raymundo,

Thank you for the update.

I have updated my brainstorm today but the issue persists.

The same error message:

** Error: Line 651: エラー: datetime (行 651)
** 形式 'dd-MMM-yyyy' を使用して '03-Feb-2026' を datetime に変換できません。日付/時刻のテキストに 'ja_JP' ロケールと異なる言語の曜日、月またはタイム ゾーンの名前が含まれている場合、それらは認識されないことがあります。'Locale' パラメーターを使用して異なるロケールを指定できます。
**
** Call stack:
** >datetime.m>datetime.datetime at 651
** >in_fopen_edf.m at 230
** >in_fopen.m at 109
** >import_raw.m at 132
** >bst_call.m at 28
** >tree_callbacks.m>@(h,ev)bst_call(@import_raw,,,iSubject) at 685

I tried change the language of my Matlab to English too.

But the issue did not solve.

Here is the error in English:


** Error: Line 651: datetime (line 651)
** Unable to convert '03-Feb-2026' to datetime using the format 'dd-MMM-yyyy'. If the date/time text contains day, month, or time zone names in a language foreign to the 'ja_JP' locale, those might not be recognized. You can specify a different locale using the 'Locale' parameter.
**
** Call stack:
** >datetime.m>datetime.datetime at 651
** >in_fopen_edf.m at 230
** >in_fopen.m at 109
** >import_raw.m at 132
** >bst_call.m at 28
** >tree_callbacks.m>@(h,ev)bst_call(@import_raw,,,iSubject) at 685
**


@hmkhoo, apologies for this error.

We have pushed a fix (Commit 037d851) to force datetime() to use en_US as input language for the date, as this is the language that date is saved in the EDF file according to the specifications, see Section 2.1.3, Point 4 .

Please update your Brainstorm to 18-Feb-2026

Changing the language of Matlab to English does not help, as datetime() uses the System language (Japanese) as default.

This was not an error in the past, as now we are ready extra information in the EDF files to allow presenting the data in actual time (hh:mm:ss), besides the recording time. Documentation is in construction.

Thank you for the fix.

It works now!