提交 1291ef3c 编写于 作者: Z zhangxiao72

修改TimePicker 时间格式

Change-Id: I1e348d64453df48452f3cdbfc27dc59742b0c9ed
Signed-off-by: Nzhangxiao72 <zhangxiao72@huawei.com>
上级 e60f7304
......@@ -55,7 +55,7 @@ Creates a time picker whose default time range is from 00:00 to 23:59.
@Entry
@Component
struct TimePickerExample {
private selectedTime: Date = new Date('7/22/2022 8:00:00')
private selectedTime: Date = new Date('2022-07-22T08:00:00')
build() {
Column() {
......
......@@ -55,7 +55,7 @@ TimePicker(options?: {selected?: Date})
@Entry
@Component
struct TimePickerExample {
private selectedTime: Date = new Date('7/22/2022 8:00:00')
private selectedTime: Date = new Date('2022-07-22T08:00:00')
build() {
Column() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册