Skip to content

Commit

Permalink
Added a fix for LDEV-5093
Browse files Browse the repository at this point in the history
  • Loading branch information
cfmitrah committed Sep 23, 2024
1 parent a7e14dd commit c78de56
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/src/main/java/lucee/commons/i18n/FormatUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ public class FormatUtil {

"EEE MMM dd yyyy HH:mm:ss 'GMT'ZZ (z)",

"EEE MMM dd yyyy HH:mm:ss 'GMT'ZZ (zzzz)",

"yyyy/MM/dd HH:mm:ss zz",

"yyyy-MM-dd HH:mm:ss zz"
Expand Down
13 changes: 13 additions & 0 deletions test/tickets/LDEV-5093.cfc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
component extends = "org.lucee.cfml.test.LuceeTestCase" {
function run( testResults, testBox ){
describe( "Test LDEV-5093", function(){
it( "test EEE MMM dd yyyy HH:mm:ss 'GMT'ZZ (zzzz)", function(){
var dateTime = "Mon Sep 23 2024 16:36:28 GMT+0530 (India Standard Time)";
var result = isDate(ParseDateTime(dateTime));

expect( result ).toBeTrue();
expect( dateTimeFormat(dateTime,"zzzz") ).toBe( "india Standard Time" );
});
} );
}
}

0 comments on commit c78de56

Please sign in to comment.