Skip to content

Commit fd6ad1d

Browse files
committed
default values added
1 parent 56ebeae commit fd6ad1d

File tree

6 files changed

+38
-38
lines changed

6 files changed

+38
-38
lines changed

client/packages/lowcoder/src/comps/comps/dateComp/dateRangeUIView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export const DateRangeUIView = (props: DateRangeUIViewProps) => {
8282
<StyledAntdSelect
8383
options={timeZoneOptions.filter(option => option.value !== 'UserChoice')}
8484
placeholder="Select Time Zone"
85-
defaultValue={'Etc/UTC'}
85+
defaultValue={'(UTC 00:00) UTC'}
8686
onChange={props?.onClickDateRangeTimeZone}
8787
/>
8888
</StyledDiv>

client/packages/lowcoder/src/comps/comps/dateComp/dateUIView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export const DateUIView = (props: DataUIViewProps) => {
7070
<StyledAntdSelect
7171
options={timeZoneOptions.filter(option => option.value !== 'UserChoice')}
7272
placeholder="Select Time Zone"
73-
defaultValue={'Etc/UTC'}
73+
defaultValue={'(UTC 00:00) UTC'}
7474
onChange={props.onClickDateTimeZone}
7575
/>
7676
</StyledDiv>

client/packages/lowcoder/src/comps/comps/dateComp/timeRangeUIView.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const RangePickerStyled = styled((props: any) => <RangePicker {...props} />)<{ $
2121
`;
2222

2323
const StyledAntdSelect = styled(AntdSelect)`
24-
width: 100%;
24+
width: 300px;
2525
margin: 10px 0px;
2626
.ant-select-selector {
2727
font-size: 14px;
@@ -71,7 +71,7 @@ export const TimeRangeUIView = (props: TimeRangeUIViewProps) => {
7171
<StyledAntdSelect
7272
placeholder="Select Time Zone"
7373
options={timeZoneOptions.filter(option => option.value !== 'UserChoice')} // Filter out 'userChoice'
74-
defaultValue={'Etc/UTC'}
74+
defaultValue={'(UTC 00:00) UTC'}
7575
onChange={props.handleTimeRangeZoneChange}
7676
/>
7777
)

client/packages/lowcoder/src/comps/comps/dateComp/timeUIView.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const TimeMobileUIView = React.lazy(() =>
2121
);
2222

2323
const StyledAntdSelect = styled(AntdSelect)`
24-
width: 350px;
24+
width: 300px;
2525
margin: 10px 0;
2626
.ant-select-selector {
2727
font-size: 14px;
@@ -54,7 +54,7 @@ export const TimeUIView = (props: TimeUIViewProps) => {
5454
placeholder="Select Time Zone"
5555
options={timeZoneOptions.filter(option => option.value !== 'UserChoice')} // Filter out 'userChoice'
5656
onChange={props?.handleTimeZoneChange}
57-
defaultValue={'Etc/UTC'}
57+
defaultValue={'(UTC 00:00) UTC'}
5858
/>
5959
)
6060
)}
Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
11
import { trans } from "i18n";
22

33
export const timeZoneOptions = [
4-
{ label: trans("timeZone.UTC-12:00"), value: "Etc/GMT+12" },
5-
{ label: trans("timeZone.UTC-11:00"), value: "Etc/GMT+11" },
6-
{ label: trans("timeZone.UTC-10:00"), value: "Pacific/Honolulu" },
7-
{ label: trans("timeZone.UTC-09:00"), value: "America/Anchorage" },
8-
{ label: trans("timeZone.UTC-08:00"), value: "America/Tijuana" },
9-
{ label: trans("timeZone.UTC-07:00"), value: "America/Los_Angeles" },
10-
{ label: trans("timeZone.UTC-06:00"), value: "America/Chicago" },
11-
{ label: trans("timeZone.UTC-05:00"), value: "America/New_York" },
12-
{ label: trans("timeZone.UTC-04:00"), value: "America/Halifax" },
13-
{ label: trans("timeZone.UTC-03:00"), value: "America/Argentina/Buenos_Aires" },
14-
{ label: trans("timeZone.UTC-02:00"), value: "Etc/GMT+2" },
15-
{ label: trans("timeZone.UTC-01:00"), value: "Atlantic/Cape_Verde" },
16-
{ label: trans("timeZone.UTC+00:00"), value: "Etc/UTC" },
17-
{ label: trans("timeZone.UTC+01:00"), value: "Europe/Berlin" },
18-
{ label: trans("timeZone.UTC+02:00"), value: "Europe/Bucharest" },
19-
{ label: trans("timeZone.UTC+03:00"), value: "Europe/Moscow" },
20-
{ label: trans("timeZone.UTC+04:00"), value: "Asia/Dubai" },
21-
{ label: trans("timeZone.UTC+05:00"), value: "Asia/Karachi" },
22-
{ label: trans("timeZone.UTC+05:30"), value: "Asia/Kolkata" },
23-
{ label: trans("timeZone.UTC+05:45"), value: "Asia/Kathmandu" },
24-
{ label: trans("timeZone.UTC+06:00"), value: "Asia/Dhaka" },
25-
{ label: trans("timeZone.UTC+06:30"), value: "Asia/Rangoon" },
26-
{ label: trans("timeZone.UTC+07:00"), value: "Asia/Bangkok" },
27-
{ label: trans("timeZone.UTC+08:00"), value: "Asia/Shanghai" },
28-
{ label: trans("timeZone.UTC+09:00"), value: "Asia/Tokyo" },
29-
{ label: trans("timeZone.UTC+09:30"), value: "Australia/Darwin" },
30-
{ label: trans("timeZone.UTC+10:00"), value: "Australia/Sydney" },
31-
{ label: trans("timeZone.UTC+11:00"), value: "Pacific/Guadalcanal" },
32-
{ label: trans("timeZone.UTC+12:00"), value: "Pacific/Auckland" },
33-
{ label: trans("timeZone.UTC+13:00"), value: "Pacific/Tongatapu" },
34-
{ label: trans("timeZone.UserChoice"), value: "UserChoice" }
4+
{ label: trans("timeZone.UTC-12:00"), value: trans("timeZone.UTC-12:00") },
5+
{ label: trans("timeZone.UTC-11:00"), value: trans("timeZone.UTC-11:00") },
6+
{ label: trans("timeZone.UTC-10:00"), value: trans("timeZone.UTC-10:00") },
7+
{ label: trans("timeZone.UTC-09:00"), value: trans("timeZone.UTC-09:00") },
8+
{ label: trans("timeZone.UTC-08:00"), value: trans("timeZone.UTC-08:00") },
9+
{ label: trans("timeZone.UTC-07:00"), value: trans("timeZone.UTC-07:00") },
10+
{ label: trans("timeZone.UTC-06:00"), value: trans("timeZone.UTC-06:00") },
11+
{ label: trans("timeZone.UTC-05:00"), value: trans("timeZone.UTC-05:00") },
12+
{ label: trans("timeZone.UTC-04:00"), value: trans("timeZone.UTC-04:00") },
13+
{ label: trans("timeZone.UTC-03:00"), value: trans("timeZone.UTC-03:00") },
14+
{ label: trans("timeZone.UTC-02:00"), value: trans("timeZone.UTC-02:00") },
15+
{ label: trans("timeZone.UTC-01:00"), value: trans("timeZone.UTC-01:00") },
16+
{ label: trans("timeZone.UTC+00:00"), value: trans("timeZone.UTC+00:00") },
17+
{ label: trans("timeZone.UTC+01:00"), value: trans("timeZone.UTC+01:00") },
18+
{ label: trans("timeZone.UTC+02:00"), value: trans("timeZone.UTC+02:00") },
19+
{ label: trans("timeZone.UTC+03:00"), value: trans("timeZone.UTC+03:00") },
20+
{ label: trans("timeZone.UTC+04:00"), value: trans("timeZone.UTC+04:00") },
21+
{ label: trans("timeZone.UTC+05:00"), value: trans("timeZone.UTC+05:00") },
22+
{ label: trans("timeZone.UTC+05:30"), value: trans("timeZone.UTC+05:30") },
23+
{ label: trans("timeZone.UTC+05:45"), value: trans("timeZone.UTC+05:45") },
24+
{ label: trans("timeZone.UTC+06:00"), value: trans("timeZone.UTC+06:00") },
25+
{ label: trans("timeZone.UTC+06:30"), value: trans("timeZone.UTC+06:30") },
26+
{ label: trans("timeZone.UTC+07:00"), value: trans("timeZone.UTC+07:00") },
27+
{ label: trans("timeZone.UTC+08:00"), value: trans("timeZone.UTC+08:00") },
28+
{ label: trans("timeZone.UTC+09:00"), value: trans("timeZone.UTC+09:00") },
29+
{ label: trans("timeZone.UTC+09:30"), value: trans("timeZone.UTC+09:30") },
30+
{ label: trans("timeZone.UTC+10:00"), value: trans("timeZone.UTC+10:00") },
31+
{ label: trans("timeZone.UTC+11:00"), value: trans("timeZone.UTC+11:00") },
32+
{ label: trans("timeZone.UTC+12:00"), value: trans("timeZone.UTC+12:00") },
33+
{ label: trans("timeZone.UTC+13:00"), value: trans("timeZone.UTC+13:00") },
34+
{ label: trans("timeZone.UserChoice"), value: trans("timeZone.UserChoice") }
3535
];

client/packages/lowcoder/src/i18n/locales/en.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3644,7 +3644,7 @@ export const en = {
36443644
"UTC+11:00": "(UTC+11:00) Solomon Islands, New Caledonia",
36453645
"UTC+12:00": "(UTC+12:00) Auckland, Fiji",
36463646
"UTC+13:00": "(UTC+13:00) Nuku'alofa, Samoa",
3647-
"UserChoice": "User Choice"
3647+
"UserChoice": "UserChoice"
36483648
},
36493649
tour: {
36503650
section1Title: "Steps",

0 commit comments

Comments
 (0)