This is an automated email from the ASF dual-hosted git repository.
michaelo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/velocity-engine.git
The following commit(s) were added to refs/heads/master by this push:
new 56df683d Fix time zone issue in Velocity952TestCase
56df683d is described below
commit 56df683d70e29261480cf6e9007196645d352ce7
Author: Nate <[email protected]>
AuthorDate: Thu Oct 31 20:20:28 2024 -0700
Fix time zone issue in Velocity952TestCase
Fix issue where testEnd2End fails when run outside of the GMT+1 time zone.
---
.../test/java/org/apache/velocity/test/issues/Velocity952TestCase.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/velocity-engine-core/src/test/java/org/apache/velocity/test/issues/Velocity952TestCase.java
b/velocity-engine-core/src/test/java/org/apache/velocity/test/issues/Velocity952TestCase.java
index b92a3496..b2d27042 100755
---
a/velocity-engine-core/src/test/java/org/apache/velocity/test/issues/Velocity952TestCase.java
+++
b/velocity-engine-core/src/test/java/org/apache/velocity/test/issues/Velocity952TestCase.java
@@ -83,7 +83,7 @@ public class Velocity952TestCase extends BaseTestCase
protected void setUpContext(VelocityContext context)
{
- context.put("tz", TimeZone.getDefault());
+ context.put("tz", TimeZone.getTimeZone("GMT+1"));
context.put("bar", new Bar());
context.put("baz", new Baz());
}