Alr1976 Posted October 22, 2025 Posted October 22, 2025 Hi! I m using tUnidbDateTimePicker with Kind = tUnitime and usesystemformat = true; I have Us TimeZone so DateTimePicker must display AM/PM from 0:00:00 to 12:00 But i have : Br,Alessandro Quote
Sherzod Posted October 27, 2025 Posted October 27, 2025 Yes, it looks like the issue was in the DelphiTimeFormatToPickerFormat method (inside uniGUIJSUtils.pas). This fix is for testing only — we’ll review and apply it properly in future builds. uses ... System.RegularExpressions; function DelphiTimeFormatToPickerFormat(DFormat: string): string; var S: string; begin // Delphi short/Long time formats uses "m" for minutes while the rest of formatting system uses "n" for minutes // Result := StringReplace(DFormat, 'm', 'n' , [rfReplaceAll]); // Result := DelphiToPickerFormat(Result); // === fixed === if DFormat = '' then Exit(''); S := DFormat; S := TRegEx.Replace(S, '(?i)\b(am/pm|ampm|tt|am|pm)\b', #2'AMPM'#3); S := StringReplace(S, 'm', 'n', [rfReplaceAll]); S := DelphiToPickerFormat(S); S := StringReplace(S, #2'AMPM'#3, 'A', [rfReplaceAll]); Result := S; end; Quote
Alr1976 Posted October 29, 2025 Author Posted October 29, 2025 Hi! I have changed source code but i have same problem. Br,Alessandro Quote
Sherzod Posted October 29, 2025 Posted October 29, 2025 1 hour ago, Alr1976 said: I have changed source code but i have same problem. How does the TimeFormat property look on your side? Quote
Alr1976 Posted October 29, 2025 Author Posted October 29, 2025 Hi! i use usesystem = true and i use Us region. Br,Alessandro Quote
Sherzod Posted October 29, 2025 Posted October 29, 2025 13 minutes ago, Alr1976 said: i use usesystem = true I know. 14 minutes ago, Alr1976 said: i use Us region Quote
Alr1976 Posted October 29, 2025 Author Posted October 29, 2025 Hi , In timezone i use uniguiapplication.shortdate Br,Alessandro Quote
Alr1976 Posted October 29, 2025 Author Posted October 29, 2025 Hi! If i use Hh:mm tt in timezone and It works. But in text on datetinepicker It display 02:01 Am:001:0 In my db i have field ttime in this format: 01:00:00 so It doesn t display It correctly. Br,Alessandro Quote
Alr1976 Posted October 30, 2025 Author Posted October 30, 2025 Hi! do how can i change Dispay format with Us Format? Tks Alessandro Quote
Sherzod Posted October 30, 2025 Posted October 30, 2025 1 hour ago, Alr1976 said: Us Format Do you mean that you want to change the display format to the US date and time format (MM/DD/YYYY and 12-hour clock with AM/PM)? Quote
Alr1976 Posted October 30, 2025 Author Posted October 30, 2025 Hi , In my unifrane i have a tunidbdatepicker. I use only time . In time format i use 'hh:mm tt'. In this way i see when i select tunidbdatepicker correctly items: 12 am 11 am 10 am Etc. In my Mariadb my ttime Is: 22:00 When i open my form, First time show( in text property) 10:00 pm:001:01. If i choose item It show me correctly: 10:00 pm. So First time in tunidbdatepicker show me wrong format. Tks,Alessandro Quote
Alr1976 Posted November 3, 2025 Author Posted November 3, 2025 Hi! this is my test case br,Alessandro GridSummary.rar Quote
Sherzod Posted November 5, 2025 Posted November 5, 2025 On 11/3/2025 at 10:45 AM, Alr1976 said: this is my test case Hello, I will try to check your test case. Quote
Alr1976 Posted November 5, 2025 Author Posted November 5, 2025 Hi. Please try uniguiapplication.shortdate with US format. Br,Alessandro Quote
Alr1976 Posted November 10, 2025 Author Posted November 10, 2025 Hi! I need to release my app, someone can help me? Br,Alessandro Quote
Sherzod Posted November 10, 2025 Posted November 10, 2025 On 11/3/2025 at 10:45 AM, Alr1976 said: GridSummary.rar 25.66 kB · 0 downloads Hello, It seems you have attached the wrong test case. Quote
Alr1976 Posted November 10, 2025 Author Posted November 10, 2025 Hi! Sorry ... Br,Alessandro date.rar Quote
Sherzod Posted November 11, 2025 Posted November 11, 2025 21 hours ago, Alr1976 said: date.rar 1.81 MB · 1 download Hello, Use this approach for now: 1. 2. ClientEvents.UniEvents -> function beforeInit(sender, config) { config.format = 'h:i A'; config.listeners = { afterrender: function(picker) { if (picker.initialValue) picker.setValue(picker.initialValue); } }; } Quote
Alr1976 Posted November 11, 2025 Author Posted November 11, 2025 Hi! I create datetinepicker at runtime. How can use It? Br, Alessandro Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.