我目前正在为一个项目开发网络推送通知,并对此事感到有点困惑。我找不到有关该主题的任何信息,因此请考虑以下场景:
所以问题是:
ServiceWorkerRegistration和
PushSubscriptionPWA一样的吗? 我有一个网格,有字段更新,这是来自db的日期时间,例如2011-03-22 01:45:00
这是我的读者代码:
{name: 'updatedon', type:'datetime'},
Run Code Online (Sandbox Code Playgroud)
这是我的渲染器代码:
{
id :'updatedon',
header : ' updatedon',
width : 100,
sortable : true,
dataIndex: 'updatedon',
renderer: Ext.util.Format.dateRenderer('d/m/Y')
},
Run Code Online (Sandbox Code Playgroud)
我该如何渲染才能获得22/03/2011
我有datefield编辑器的日期列.问题是,虽然我正在编辑列2013-02-05,但它显示正常值,例如,当关闭编辑它时会显示类似的内容Sat Jul 12 2014 00:00:00 GMT+0300 (FLE Standard Time)
我的代码:
{
xtype : 'datecolumn',
dataIndex : 'depreciationStartPeriod',
header : 'Depreciation start period',
sortable : true,
id : 'depreciationStartPeriod',
width : 134,
editor : {
xtype : 'datefield',
format: 'Y-m-d H:i:s'
}
}
Run Code Online (Sandbox Code Playgroud)
商店领域:
{
name : 'depreciationStartPeriod',
type : 'String',
dateFormat: 'c'
}
Run Code Online (Sandbox Code Playgroud)
原因是什么?
UPDATE
在商店里,由于某些原因,它也以错误的格式保存,这就是为什么它以这种格式显示,但我现在不知道原因.