@brightspace-ui/intl 3.34.4 → 3.35.0

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.
Files changed (2) hide show
  1. package/lib/dateTime.js +3 -1
  2. package/package.json +1 -1
package/lib/dateTime.js CHANGED
@@ -367,6 +367,7 @@ function getParts() {
367
367
  result.push('M');
368
368
  break;
369
369
  case 'yyyy':
370
+ case 'yy':
370
371
  result.push('yyyy');
371
372
  break;
372
373
  }
@@ -1099,7 +1100,8 @@ export function formatDate(date, options) {
1099
1100
  'MMM': descriptor.calendar.months.short[date.getMonth()],
1100
1101
  'MM': prePadByZero((date.getMonth() + 1), 2),
1101
1102
  'M': (date.getMonth() + 1).toString(),
1102
- 'yyyy': date.getFullYear().toString()
1103
+ 'yyyy': date.getFullYear().toString(),
1104
+ 'yy': date.getFullYear().toString().substr(2, 2)
1103
1105
  };
1104
1106
 
1105
1107
  const value = processPattern(format, replacements);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/intl",
3
- "version": "3.34.4",
3
+ "version": "3.35.0",
4
4
  "description": "Internationalization APIs for number, date, time and file size formatting and parsing in D2L Brightspace.",
5
5
  "main": "lib/number.js",
6
6
  "type": "module",