Skip to content

Commit 989b8dd

Browse files
committed
Merge branch '7.1' into 8.0
# Conflicts: # core/.classpath # core/src/main/java/lucee/runtime/engine/Controler.java # loader/.classpath
2 parents 968474f + d3c658a commit 989b8dd

1 file changed

Lines changed: 20 additions & 4 deletions

File tree

core/src/main/java/lucee/runtime/type/dt/TimestampImpl.java

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,12 @@
1919
package lucee.runtime.type.dt;
2020

2121
import java.util.Date;
22-
import java.util.TimeZone;
22+
23+
import lucee.runtime.PageContext;
2324

2425
/**
25-
* DateTimeImpl for a value read from a JDBC DATE/TIME/TIMESTAMP column, preserving the driver's
26-
* own toString() representation instead of Lucee's {ts '...'} ODBC escape format - see LDEV-1344
26+
* DateTimeImpl for a value read from a JDBC DATE/TIME/TIMESTAMP column, preserving the driver's own
27+
* toString() representation instead of Lucee's {ts '...'} ODBC escape format - see LDEV-1344
2728
*/
2829
public final class TimestampImpl extends DateTimeImpl {
2930

@@ -37,7 +38,22 @@ public TimestampImpl(Date date, String jdbcToString) {
3738
}
3839

3940
@Override
40-
public String castToString(TimeZone tz) {
41+
public String castToString(PageContext pc) {
42+
return jdbcToString;
43+
}
44+
45+
@Override
46+
public String castToString(PageContext pc, String defaultValue) {
47+
return jdbcToString;
48+
}
49+
50+
@Override
51+
public String castToString() {
52+
return jdbcToString;
53+
}
54+
55+
@Override
56+
public String castToString(String defaultValue) {
4157
return jdbcToString;
4258
}
4359
}

0 commit comments

Comments
 (0)