Skip to content

Commit e9060ba

Browse files
committed
Update default feedback info
1 parent f4d86f8 commit e9060ba

File tree

1 file changed

+17
-11
lines changed

1 file changed

+17
-11
lines changed

core.py

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,20 @@
77
import arrow
88
from workflow import ICON_CLOCK, ICON_NOTE, ICON_ERROR
99

10-
DEFAULT_FEEDBACK = [{
11-
'title': 'Please enter timestamp, datetime string, "now", or space',
12-
'subtitle': 'Examples: 1607609661, 2020-12-10 22:14:33, now +08',
13-
'valid': False,
14-
'icon': ICON_ERROR,
15-
}]
10+
DEFAULT_FEEDBACK = [
11+
{
12+
'title': 'Please enter timestamp, datetime string, "now", or space',
13+
'subtitle': 'Examples: 1607609661, 2020-12-10 22:14:33, now',
14+
'valid': False,
15+
'icon': ICON_ERROR,
16+
},
17+
{
18+
'title': 'alsa support time zone and time shift',
19+
'subtitle': 'Examples: now +08, now +1d',
20+
'valid': False,
21+
'icon': ICON_ERROR,
22+
},
23+
]
1624

1725
SHIFT_UNIT_MAP = {
1826
'ms': 'microseconds',
@@ -29,20 +37,18 @@
2937
FORMAT_LIST = (
3038
(ICON_NOTE, True, 'X', 'Timestamp(s)'),
3139
(ICON_NOTE, True, 'x', 'Timestamp(us)'),
32-
(
33-
ICON_CLOCK, False, 'YYYY-MM-DD HH:mm:ss', 'Date and Time'
34-
),
3540
(
3641
ICON_CLOCK, False, 'W, DDDD[th day]',
3742
'ISO Week date and Day for year'
3843
),
44+
(ICON_CLOCK, False, 'YYYY-MM-DD HH:mm:ss', 'Date and Time'),
45+
(ICON_CLOCK, False, 'YYYY-MM-DD HH:mm:ss.SSSSSS', 'Date and Time'),
46+
(ICON_CLOCK, False, arrow.FORMAT_RFC3339, 'RFC3339 Format'),
3947
( # https://www.w3.org/TR/NOTE-datetime
4048
ICON_CLOCK, False, 'YYYY-MM-DDTHH:mm:ssZZ',
4149
'ISO 8601/W3C Format'
4250
),
4351
(ICON_CLOCK, False, arrow.FORMAT_RFC850, 'RFC850 Format'),
44-
(ICON_CLOCK, False, arrow.FORMAT_RFC3339, 'RFC3339 Format'),
45-
# FORMAT_RFC3339
4652
)
4753

4854
RE_TIMEZONE = '^[+-][0-9]{2}$'

0 commit comments

Comments
 (0)