Change goog.date to goog.date.DateTime

goog.date.fromIsoString has been deprecated in favor of goog.date.DateTime.fromIsoString.

This change still needs to be tested with field_date enabled in the build before submitting.
This commit is contained in:
RoboErikG
2018-01-08 13:07:12 -08:00
committed by Neil Fraser
parent 7413db1089
commit dba896b78a

View File

@@ -30,6 +30,7 @@ goog.require('Blockly.Field');
goog.require('Blockly.utils');
goog.require('goog.date');
goog.require('goog.date.DateTime');
goog.require('goog.dom');
goog.require('goog.events');
goog.require('goog.i18n.DateTimeSymbols');
@@ -144,7 +145,7 @@ Blockly.FieldDate.prototype.createWidget_ = function() {
picker.setShowWeekNum(false);
var div = Blockly.WidgetDiv.DIV;
picker.render(div);
picker.setDate(goog.date.fromIsoString(this.getValue()));
picker.setDate(goog.date.DateTime.fromIsoString(this.getValue()));
return picker;
};