Base solution for your next web application
Open Closed

Date formats not working after upgrade #10119


User avatar
0
KieranIrl created

What is your product version? 2.7.6

  • What is your product type (Angular or MVC)? Angular
  • What is product framework type (.net framework or .net core)? .net core

Hi there We have upgraded to the latest version and libraries of aspnetzero. In doing so, we have noticed that dateformats now use luxon.js

This has broken all of our date labels, datepickers.

What do you advise we do?


3 Answer(s)
  • User Avatar
    0
    musa.demir created

    Hi @KieranIrl

    Which version did you update to which version?

    Did you just update Abp packages or your Zero project version as well?

  • User Avatar
    0
    KieranIrl created

    Version: 10.2.0

    Yes, we updated all the packages and to we are now on .5 We had references to moment in lost of places but that is now replaced with Luxon breaking any date controls we had.

    What is the correct way to perform an upgrade, we are finding it very cumbersome.

    Thank you.

  • User Avatar
    0
    musa.demir created

    Hi @KieranIrl

    First of all, Aspnet Zero v10.2.0 uses Abp v6.2.2, see https://github.com/aspnetzero/aspnet-zero-core/blob/v10.2.0/aspnet-core/src/MyCompanyName.AbpZeroTemplate.Core/MyCompanyName.AbpZeroTemplate.Core.csproj#L37-L40


    Unfortunately, we do not support Aspnet Zero's version updates. But we recomment you to use source control services to update Zero's versions. You can check that documentation https://docs.aspnetzero.com/en/aspnet-core-mvc/latest/Version-Updating


    Moment has been replaced with luxon due to bundle size optimizations. Here is the main issue https://github.com/aspnetzero/aspnet-zero-core/issues/3447. You can follow that commit and implement it to your project to replace moment with luxon: https://github.com/aspnetzero/aspnet-zero-core/commit/d109106b1519e1b96dff8f3048774635a65a6ae5