Skip to content

Instantly share code, notes, and snippets.

@Ekhoo
Last active August 29, 2015 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ekhoo/a59a295dcabf2876c75e to your computer and use it in GitHub Desktop.
Save Ekhoo/a59a295dcabf2876c75e to your computer and use it in GitHub Desktop.
FormattedTime isomorphic issue
With the `fr-FR` locale, I have a format issue with the `<FormattedTime />` component.
If I have a date like this one: `2015-06-17T06:00:00+0000`:
Server rendering => `8:00`
Client rendering => `08:00`
I use this format:
var formats = {
time: {
hhmm: {
hour: 'numeric',
minute: 'numeric'
}
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment