I am facing an issue with my global locale variable, which is based on a user's preference. Even after passing this variable to moment along with a timestamp, the date continues to be displayed in English instead of the desired format for that locale. For instance:
moment.locale('fr');
console.log(moment(867283200, "X").format('LL')); //Despite setting the locale to French, it still shows June 25, 1997
Does anyone have any recommendations?