This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-net.git


The following commit(s) were added to refs/heads/master by this push:
     new 01d1f94b Try 3.9
01d1f94b is described below

commit 01d1f94bc4cc323dbb8ae3c8338d4bc1c6f4fa10
Author: Sebb <[email protected]>
AuthorDate: Tue May 7 00:47:38 2024 +0100

    Try 3.9
---
 .../net/ftp/parser/FTPTimestampNET710Test.java      | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git 
a/src/test/java/org/apache/commons/net/ftp/parser/FTPTimestampNET710Test.java 
b/src/test/java/org/apache/commons/net/ftp/parser/FTPTimestampNET710Test.java
new file mode 100644
index 00000000..5f823b38
--- /dev/null
+++ 
b/src/test/java/org/apache/commons/net/ftp/parser/FTPTimestampNET710Test.java
@@ -0,0 +1,21 @@
+package org.apache.commons.net.ftp.parser;
+
+
+import java.text.ParseException;
+import java.util.Calendar;
+import java.util.Locale;
+import java.util.TimeZone;
+
+/**
+* Test NET710
+*/
+public class FTPTimestampNET710Test {
+
+    public static void main(String [] args) throws ParseException {
+        Calendar serverTime = 
Calendar.getInstance(TimeZone.getTimeZone("EDT"), Locale.US);
+        serverTime.set(2022, 2, 16, 14, 0);
+        Calendar p = new FTPTimestampParserImpl().parseTimestamp("Mar 13 
02:33", serverTime);
+        System.out.println(p);
+    }
+
+}

Reply via email to