1. Kamyar Inanloo
  2. format.js

Commits

Kamyar Inanloo  committed bf0f36f

Fix: cultureFormatProvider returns empty string when input object is null.

  • Participants
  • Parent commits 96eb6b3
  • Branches default

Comments (0)

Files changed (1)

File format.js

View file
  • Ignore whitespace
 }
 
 cultureFormatProvider = function (obj, cultureName, format) {
+	if (obj == null)
+		return '';
 	if (obj instanceof Date && !format) {
 		format = cultures[cultureName].defaultDateFormat;		
 	}