Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
lucas.parsy
jio
Commits
63cdd94a
Commit
63cdd94a
authored
Feb 21, 2014
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
metadata.rst w3c get date function updated
parent
193bf84d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
docs/metadata.rst
docs/metadata.rst
+4
-4
No files found.
docs/metadata.rst
View file @
63cdd94a
...
...
@@ -437,7 +437,7 @@ W3C Date function
*/
function getW3CDate(use_utc) {
var d = new Date(), offset;
if (use_utc
=== true
) {
if (use_utc) {
return d.toISOString();
}
offset = - d.getTimezoneOffset();
...
...
@@ -449,9 +449,9 @@ W3C Date function
d.getMinutes() + ":" +
d.getSeconds() + "." +
d.getMilliseconds() +
(offset < 0 ?
"-" : "+") +
(offset / 60) + ":" +
(offset % 60
)
(offset < 0 ?
"-" + parseInt(-offset / 60, 10) + ":" + (-offset % 60) :
"+" + parseInt(offset / 60, 10) + ":" + (offset % 60)
)
).replace(/[0-9]+/g, function (found) {
if (found.length < 2) {
return '0' + found;
...
...
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