Alexander Nazarov (nfokz) wrote in changelog,
Alexander Nazarov
nfokz
changelog

[livejournal] r22064: LJSUP-12128: Draft functionality on the ...

Committer: anazarov
LJSUP-12128: Draft functionality on the new post page
U   trunk/htdocs/js/basic.js
Modified: trunk/htdocs/js/basic.js
===================================================================
--- trunk/htdocs/js/basic.js	2012-05-25 11:06:07 UTC (rev 22063)
+++ trunk/htdocs/js/basic.js	2012-05-25 11:39:18 UTC (rev 22064)
@@ -441,6 +441,12 @@
 					return date.getFullYear();
 				case 'R' :
 					return ('' + date.getHours()).pad(2, '0') + ':' + ('' + date.getMinutes()).pad(2, '0');
+				case 'T' :
+					return [
+						('' + date.getHours()).pad(2, '0'),
+						('' + date.getMinutes()).pad(2, '0'),
+						('' + date.getSeconds()).pad(2, '0')
+					].join(':');
 				default:
 					return str;
 			}

Tags: anazarov, js, livejournal, nfokz
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments