SUPPORT-9337: fix
This commit is contained in:
parent
f0d7692f86
commit
d628292ef5
2 changed files with 2 additions and 2 deletions
|
|
@ -21,7 +21,7 @@ public class DataDateDao {
|
||||||
this.dslContext = dslContext;
|
this.dslContext = dslContext;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Timestamp getDataDate() {
|
public Timestamp getLastRecordingDate() {
|
||||||
return dslContext.select(LAST_RECORDING_DATE.LAST_RECORDING_DATE_)
|
return dslContext.select(LAST_RECORDING_DATE.LAST_RECORDING_DATE_)
|
||||||
.from(LAST_RECORDING_DATE)
|
.from(LAST_RECORDING_DATE)
|
||||||
.orderBy(LAST_RECORDING_DATE.LAST_RECORDING_DATE_.desc())
|
.orderBy(LAST_RECORDING_DATE.LAST_RECORDING_DATE_.desc())
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ public class DataDateService {
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDataDate(String clientTimeZone) {
|
public String getDataDate(String clientTimeZone) {
|
||||||
Timestamp dataDate = dataDateDao.getDataDate();
|
Timestamp dataDate = dataDateDao.getLastRecordingDate();
|
||||||
String formattedClientDate = DateUtils.formatTimestampWithClientZone(dataDate, clientTimeZone);
|
String formattedClientDate = DateUtils.formatTimestampWithClientZone(dataDate, clientTimeZone);
|
||||||
return "Данные на " + formattedClientDate + " г.";
|
return "Данные на " + formattedClientDate + " г.";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue