jiffy icon indicating copy to clipboard operation
jiffy copied to clipboard

Locale data has not been initialized, call initializeDateFormatting

Open maxfrees opened this issue 10 months ago • 2 comments

LocaleDataException: Locale data has not been initialized, call initializeDateFormatting().

Image

maxfrees avatar Mar 14 '25 16:03 maxfrees

Can you please elaborate more on this issue. What caused it, what locale did you use, and how can it be replicated?

jama5262 avatar Mar 19 '25 14:03 jama5262

Add this import:

import 'package:intl/date_symbol_data_local.dart';

Then call:

initializeDateFormatting();

inside initState() (or before any DateFormat/Jiffy usage).

anees22444 avatar Aug 25 '25 11:08 anees22444