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 19, 2024, 12:56