Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sencha-core
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project-open
sencha-core
Commits
ca13b4e5
Commit
ca13b4e5
authored
Apr 15, 2020
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Fixed issue with IST India Standard time time zone
parent
98c2ed0b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
Utilities.adp
www/Utilities.adp
+12
-4
No files found.
www/Utilities.adp
View file @
ca13b4e5
...
...
@@ -184,11 +184,19 @@ Ext.define('PO.Utilities', {
hh = (h = d.getHours()) < 10 ? ('0'+h) : h;
mm = (m = d.getMinutes()) < 10 ? ('0'+m) : m;
ss = (s = d.getSeconds()) < 10 ? ('0'+s) : s;
// Handle time zone. Time zones with fractions of an hour need to be added with ':30'
tzSign = (tzo = d.getTimezoneOffset()/-60) < 0 ? '-' : '+';
tz = (tzAbs = Math.abs(tzo)) < 10 ? ('0'+tzAbs) : ''+tzAbs;
return YYYY+'-'+MM+'-'+DD+' '+hh+':'+mm+':'+ss+tzSign+tz;
tzAbs = Math.abs(tzo);
if (Math.floor(tzAbs) != tzAbs) {
tzAbsFrac = ':30';
tzAbs = Math.floor(tzAbs);
} else {
tzAbsFrac = '';
}
tz = tzAbs < 10 ? ('0'+tzAbs) : ''+tzAbs;
return YYYY+'-'+MM+'-'+DD+' '+hh+':'+mm+':'+ss+tzSign+tz+tzAbsFrac;
},
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment