|
@@ -14,7 +14,7 @@ namespace ExtensionsDev
|
|
|
{
|
|
|
public static DateEdit UseDefault(this DateEdit ctrl, string nullPrompt = "", string format = "yyyy-MM-dd HH:mm:ss")
|
|
|
{
|
|
|
- if (string.IsNullOrWhiteSpace(nullPrompt))
|
|
|
+ if (string.IsNullOrWhiteSpace(nullPrompt)&& SysConfig.Config!=null)
|
|
|
{
|
|
|
ctrl.Properties.NullValuePrompt = SysConfig.Config.TimeZoneUTC;
|
|
|
ctrl.ToolTip= SysConfig.Config.TimeZoneUTC;
|