我收到错误
core.es5.js:1020 错误错误:未捕获(承诺):类型错误:date.getMonth 不是函数
类型错误:date.getMonth 不是函数
每当我从后端接收 JSON 对象时尝试使用 2 路数据绑定时,都会收到此错误。我的后端数据类型是日期,但它不会在 p-calendar 输入中显示备份。请帮忙!
{ "applicationId": 1, "entryDate": 1524665731000, "ongoingDescription": "<p>Ongoing entry should end in (5081421)</p>", "activeFlag": "Y" }
Run Code Online (Sandbox Code Playgroud)
HTML
<div class="form-group">
<label>Date of the Ongoing Incident</label>
<br>
<p-calendar required [(ngModel)]="entry.entryDate" name="entryDate" #entryDate="ngModel" [showIcon]="true" [showTime]="true" dateFormat="mm/dd/y 'EST'" hourFormat="24"></p-calendar>
<div class="alert alert-danger" *ngIf="entryDate.touched && !entryDate.valid" >The date and time of the incident are required</div>
</div>
Run Code Online (Sandbox Code Playgroud)
TS
entryDate: Date;
entry = {
}
constructor(private service: OngoingService, private route: ActivatedRoute,
private router: Router, private …Run Code Online (Sandbox Code Playgroud) 有谁知道是否可以禁用日期/时间选择器自动将 UTC 时间添加到日期对象?如下图所示,它会自动将我的日期对象调整为 UTC。我希望我的日期对象在 10:00:00 提交
{"reportedDate": "2019-02-13T15:00:16.000Z"}
<p-calendar required [(ngModel)]="entry.reportedDate" name="reportedDate" #reportedDate="ngModel" [showIcon]="true" [showTime]="true" dateFormat="mm/dd/y 'EST'" hourFormat="24"></p-calendar>
Run Code Online (Sandbox Code Playgroud) 我无法将 Oracle ojdbc 驱动程序更新到 Oracle 数据库的最新版本。
我正在将我的 pom.xml 文件更新为 19c oracle 数据库的最新版本,保存后它不会将最新的 .jar 文件添加到我的 Maven 依赖项中。它在 c:-temp-com-oracle 文件夹结构中创建文件夹,但没有 .jar 文件
我对此有点陌生,不确定我错过了什么。我的理解是spring boot应该根据pom文件自动下载正确的依赖。
感谢您的帮助。
信息
Java 版本 1.8 Oracle 19c 数据库
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.0.3.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc8</artifactId>
<version>19.3.0.0</version>
</dependency>
Run Code Online (Sandbox Code Playgroud)
以前的版本(没有任何问题)
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc6</artifactId>
<version>11.2.0.3</version>
</dependency>
Run Code Online (Sandbox Code Playgroud)