mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2026-01-16 00:31:11 +00:00
migrated all dates to joda time
This commit is contained in:
parent
c4b5a98ac8
commit
d88b565d28
13 changed files with 63 additions and 38 deletions
|
|
@ -2,6 +2,7 @@
|
|||
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
|
||||
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||
<%@ taglib prefix="joda" uri="http://www.joda.org/joda/time/tags" %>
|
||||
|
||||
<html lang="en">
|
||||
|
||||
|
|
@ -58,7 +59,7 @@
|
|||
<dt>Name</dt>
|
||||
<dd>${pet.name}</dd>
|
||||
<dt>Birth Date</dt>
|
||||
<dd><fmt:formatDate value="${pet.birthDate}" pattern="yyyy-MM-dd"/></dd>
|
||||
<dd><joda:format value="${pet.birthDate}" pattern="yyyy-MM-dd" /></dd>
|
||||
<dt>Type</dt>
|
||||
<dd>${pet.type.name}</dd>
|
||||
</dl>
|
||||
|
|
@ -73,7 +74,7 @@
|
|||
</thead>
|
||||
<c:forEach var="visit" items="${pet.visits}">
|
||||
<tr>
|
||||
<td><fmt:formatDate value="${visit.date}" pattern="yyyy-MM-dd"/></td>
|
||||
<td><joda:format value="${visit.date}" pattern="yyyy-MM-dd"/></td>
|
||||
<td>${visit.description}</td>
|
||||
</tr>
|
||||
</c:forEach>
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
|
||||
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
|
||||
|
||||
<%@ taglib prefix="joda" uri="http://www.joda.org/joda/time/tags" %>
|
||||
|
||||
<html lang="en">
|
||||
|
||||
|
|
@ -26,7 +26,7 @@
|
|||
</thead>
|
||||
<tr>
|
||||
<td>${visit.pet.name}</td>
|
||||
<td><fmt:formatDate value="${visit.pet.birthDate}" pattern="yyyy-MM-dd"/></td>
|
||||
<td><joda:format value="${visit.pet.birthDate}" pattern="yyyy-MM-dd"/></td>
|
||||
<td>${visit.pet.type.name}</td>
|
||||
<td>${visit.pet.owner.firstName} ${visit.pet.owner.lastName}</td>
|
||||
</tr>
|
||||
|
|
@ -35,7 +35,7 @@
|
|||
<table class="table">
|
||||
<tr>
|
||||
<th>
|
||||
Date:
|
||||
Date
|
||||
<br/><form:errors path="date" cssClass="errors"/>
|
||||
</th>
|
||||
<td>
|
||||
|
|
@ -44,7 +44,7 @@
|
|||
<tr/>
|
||||
<tr>
|
||||
<th valign="top">
|
||||
Description:
|
||||
Description
|
||||
<br/><form:errors path="description" cssClass="errors"/>
|
||||
</th>
|
||||
<td>
|
||||
|
|
@ -61,7 +61,7 @@
|
|||
</form:form>
|
||||
|
||||
<br/>
|
||||
<b>Previous Visits:</b>
|
||||
<b>Previous Visits</b>
|
||||
<table style="width: 333px;">
|
||||
<tr>
|
||||
<th>Date</th>
|
||||
|
|
@ -70,7 +70,7 @@
|
|||
<c:forEach var="visit" items="${visit.pet.visits}">
|
||||
<c:if test="${!visit['new']}">
|
||||
<tr>
|
||||
<td><fmt:formatDate value="${visit.date}" pattern="yyyy-MM-dd"/></td>
|
||||
<td><joda:format value="${visit.date}" pattern="yyyy-MM-dd"/></td>
|
||||
<td>${visit.description}</td>
|
||||
</tr>
|
||||
</c:if>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue