Changes in / [fb75979:45adeeb] in mainline
- Files:
-
- 12 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
.gitignore
rfb75979 r45adeeb 9 9 tools/xcw/demo/viewer 10 10 /.cache 11 /PKG12 /downloads13 /amd64-helenos -
uspace/app/aboutos/aboutos.c
rfb75979 r45adeeb 1 1 /* 2 * Copyright (c) 2025 Wayne Michael Thornton (WMT) <wmthornton-dev@outlook.com>3 2 * Copyright (c) 2024 Jiri Svoboda 4 3 * Copyright (c) 2012 Petr Koupy … … 168 167 ui_wnd_params_init(¶ms); 169 168 params.caption = "About HelenOS"; 170 params.placement = ui_wnd_place_center;171 169 172 170 /* FIXME: Auto layout */ -
uspace/app/date/date.c
rfb75979 r45adeeb 1 1 /* 2 * Copyright (c) 2025 Wayne Michael Thornton (WMT) <wmthornton-dev@outlook.com>3 2 * Copyright (c) 2012 Maurizio Lombardi 4 3 * All rights reserved. … … 196 195 197 196 /** Read the day, month and year from a string 198 * with the following format: DD/MM/YYYY or MM/DD/YYYY197 * with the following format: DD/MM/YYYY 199 198 */ 200 199 static errno_t … … 203 202 errno_t rc; 204 203 uint32_t tmp; 205 uint32_t first_num;206 uint32_t second_num;207 204 208 205 if (str_size(wdate) != 10) /* str_size("DD/MM/YYYY") == 10 */ … … 214 211 } 215 212 216 /* Parse first number */ 217 rc = str_uint32_t(&wdate[0], NULL, 10, false, &first_num); 213 rc = str_uint32_t(&wdate[0], NULL, 10, false, &tmp); 218 214 if (rc != EOK) 219 215 return rc; 220 216 221 /* Parse second number */ 222 rc = str_uint32_t(&wdate[3], NULL, 10, false, &second_num); 217 t->tm_mday = tmp; 218 219 rc = str_uint32_t(&wdate[3], NULL, 10, false, &tmp); 223 220 if (rc != EOK) 224 221 return rc; 225 222 226 /* Determine format based on first number */ 227 if (first_num > 12) { 228 /* First number is day (DD/MM/YYYY format) */ 229 t->tm_mday = first_num; 230 t->tm_mon = second_num - 1; 231 } else if (second_num > 12) { 232 /* Second number is day (MM/DD/YYYY format) */ 233 t->tm_mon = first_num - 1; 234 t->tm_mday = second_num; 235 } else { 236 /* Ambiguous case - assume DD/MM/YYYY format */ 237 t->tm_mday = first_num; 238 t->tm_mon = second_num - 1; 239 } 223 t->tm_mon = tmp - 1; 240 224 241 225 rc = str_uint32_t(&wdate[6], NULL, 10, false, &tmp); 242 if (rc != EOK)243 return rc;244 245 226 t->tm_year = tmp - 1900; 246 227 247 return EOK;228 return rc; 248 229 } 249 230 … … 350 331 usage(void) 351 332 { 352 printf("Usage: date [-d DD/MM/YYYY |MM/DD/YYYY] [-t HH:MM[:SS]]\n");353 printf(" -d Change the current date (supports both DD/MM/YYYY and MM/DD/YYYY formats)\n");333 printf("Usage: date [-d DD/MM/YYYY] [-t HH:MM[:SS]]\n"); 334 printf(" -d Change the current date\n"); 354 335 printf(" -t Change the current time\n"); 355 336 printf(" -h Display this information\n"); -
uspace/app/meson.build
rfb75979 r45adeeb 34 34 'blkdump', 35 35 'calculator', 36 'clock_widget',37 36 'corecfg', 38 37 'cpptest', 39 38 'date', 40 'date_cfg',41 39 'devctl', 42 40 'df', -
uspace/app/taskbar/clock.c
rfb75979 r45adeeb 1 1 /* 2 * Copyright (c) 2025 Wayne Michael Thornton (WMT) <wmthornton-dev@outlook.com>3 2 * Copyright (c) 2022 Jiri Svoboda 4 3 * All rights reserved. … … 220 219 } 221 220 222 /** Launch date configuration application */223 static errno_t taskbar_clock_launch_date_cfg(void)224 {225 task_id_t id;226 const char *args[] = { "/app/date_cfg", NULL };227 return task_spawnv(&id, NULL, args[0], args);228 }229 230 221 /** Handle taskbar clock position event. 231 222 * … … 242 233 if (!gfx_pix_inside_rect(&pos, &clock->rect)) 243 234 return ui_unclaimed; 244 245 if (event->type == POS_PRESS) {246 taskbar_clock_launch_date_cfg();247 }248 235 249 236 return ui_claimed;
Note:
See TracChangeset
for help on using the changeset viewer.