@carbonplan/components 11.1.0 → 11.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2850,7 +2850,7 @@ const formatDateElement = (date, element, option) => {
2850
2850
  [element]: format
2851
2851
  });
2852
2852
 
2853
- if (format === 'numeric' && element === 'day') {
2853
+ if (format === 'numeric' && ['day', 'month'].includes(element)) {
2854
2854
  return result.padStart(2, '0');
2855
2855
  } else {
2856
2856
  return result;