我需要得到最后10个注册用户(正常用户)在我的统计申请。应用程序有两个角色:普通用户和管理员用户。在我的用户类( security)中,我有dateCreated字段,我可以使用以下查询在控制器中获得最后10个注册用户:
User.listOrderByDateCreated(max: 10, order
由于角度更新,我对地区有问题。import localePl from '@angular/common/locales/pl';它正在工作,但会导致一个错误:pl-PLAnd I为LOCALE_ID提供了值,在LOCALE_ID中使用DatePipe。(变量:日期)- new Date()等于variable1)
import locale