Skip to content

Commit 7d2121d

Browse files
adamsaghyvidakovic
authored andcommitted
FINERACT-1835: Backported fix of Wrong audit time is set for datatables
1 parent 2a6f479 commit 7d2121d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fineract-provider/src/main/java/org/apache/fineract/infrastructure/core/service/database/DatabaseSpecificSQLGenerator.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,9 @@ public String currentTenantDate() {
110110

111111
public String currentTenantDateTime() {
112112
if (databaseTypeResolver.isMySQL()) {
113-
return format("TIMESTAMP('%s')", DateUtils.getLocalDateTimeOfTenant().format(DateUtils.DEFAULT_DATETIME_FORMATER));
113+
return format("TIMESTAMP('%s')", DateUtils.getLocalDateTimeOfSystem().format(DateUtils.DEFAULT_DATETIME_FORMATER));
114114
} else if (databaseTypeResolver.isPostgreSQL()) {
115-
return format("TIMESTAMP '%s'", DateUtils.getLocalDateTimeOfTenant().format(DateUtils.DEFAULT_DATETIME_FORMATER));
115+
return format("TIMESTAMP '%s'", DateUtils.getLocalDateTimeOfSystem().format(DateUtils.DEFAULT_DATETIME_FORMATER));
116116
} else {
117117
throw new IllegalStateException("Database type is not supported for current date time" + databaseTypeResolver.databaseType());
118118
}

0 commit comments

Comments
 (0)