Starts in:
1 DAY
19 HRS
58 MIN
52 SEC
Starts in:
1 D
19 H
58 M
52 S
Open Closed

The date is incorrect when selecting the German language on the TenantDashboard #2004


User avatar
0
uyarbtrlp created

Hello,

I notice that when I change the language to German, I cannot see any value in graphs which are set defaultly. We use three languages (Turkish, English, German) in our application. Others haven't got such a problem. Also I checked the default project created by Abp suite to try to figure out if the problem was our fault or not. It has same problem, too. After trying to change the date from date range input, I figured out the dates are wrong initially. While taking the current date initially, I see past date instead of current date. When I change the dates, I can get the correct values. Do you have any advice to get current date or is it a bug to be fixed by ABP?

  • ABP Framework version: v4.4.3
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) ): yes

1 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Try to add format: abp.localization.currentCulture.dateTimeFormat.shortDatePattern

        $dateRangePicker.datepicker({
            autoclose: true,
            language: abp.localization.currentCulture.cultureName,
            format: abp.localization.currentCulture.dateTimeFormat.shortDatePattern
        });
    
Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06