未验证 提交 e6223bf2 编写于 作者: O openharmony_ci 提交者: Gitee

!10971 修改TimePicker 时间格式

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