Imported Upstream version 58.1
[platform/upstream/icu.git] / source / i18n / datefmt.cpp
index 4f7a104..2767e3f 100644 (file)
@@ -1,3 +1,5 @@
+// Copyright (C) 2016 and later: Unicode, Inc. and others.
+// License & terms of use: http://www.unicode.org/copyright.html
 /*
  *******************************************************************************
  * Copyright (C) 1997-2015, International Business Machines Corporation and    *
@@ -317,7 +319,7 @@ DateFormat::format(UDate date, UnicodeString& appendTo) const
 {
     // Note that any error information is just lost.  That's okay
     // for this convenience method.
-    FieldPosition fpos(0);
+    FieldPosition fpos(FieldPosition::DONT_CARE);
     return format(date, appendTo, fpos);
 }