Changeset 3960
- Timestamp:
- 04/07/11 10:31:54 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.0.1/expressoMail1_2/js/local_messages.js
r3911 r3960 1009 1009 * Antigamente o udate vinha com o formato de data e foi alterado para vir o timestamp. 1010 1010 * Nesse caso, e-mails arquivados anteriormente usamos o udate, caso contrario, usamos o smalldate, 1011 * pois o udate agora vem como timestamp*/ 1011 * pois o udate agora vem como timestamp 1012 * verifica tambem no caso de mensagens antigas que nao exista o smalldate 1013 * definir 1014 */ 1012 1015 if( !date_formated.match(/\d{2}\/\d{2}\/\d{4}/) ) 1013 1016 { 1014 date_formated = header["smalldate"]; 1015 } 1017 if ( (typeof(header["smalldate"]) != "undefined") && (!header["smalldate"].match(/\d{2}\:\d{2}/) ) ){ 1018 date_formated = header["smalldate"]; 1019 }else{ 1020 var day = new Date(); 1021 day.setTime(header["udate"] * 1000); 1022 aux_dia = day.getDate() < 10 ? '0' + day.getDate() : day.getDate(); 1023 aux_mes = day.getMonth()+1; // array start with '0..11' 1024 aux_mes = aux_mes < 10 ? '0' + aux_mes : aux_mes; 1025 date_formated = aux_dia + '/' + aux_mes + '/' + day.getFullYear(); 1026 } 1027 } 1016 1028 1017 1029 retorno[ numRec++ ] =
Note: See TracChangeset
for help on using the changeset viewer.