Arena Vision Agenda in Local Time

Converts the times in the Arena Vision agenda to user's local timezone.

< Feedback on Arena Vision Agenda in Local Time

Question/comment

Fggh

// == == Userscript
// @Name Arena Vision Agenda en hora local
// @description Convierte los tiempos en la agenda Arena Vision para la zona horaria local del usuario.
// @include Http://www.arenavision.in/agenda*
// @copyright Akashi
// @version 1.0.2
// @license GPL versión 3 o cualquier versión posterior; http://www.gnu.org/copyleft/gpl.html
// @namespace https://greasyfork.org/users/15887
// == / userscript ==

var el = jQuery ( ' item.even .field-p ' );


EL [ 1 ] = el .innerHTML [ 1 ] .innerHTML.replace ( / \ d \ d \ / \ d \ d \ / \ d \ d \ d \ d : \ d \ d CET / g , la función (r) {
var spacesplit = r.split ( ' ' );
var s = spacesplit [ 0 ] .split ( ' / ' );
var tiempo = spacesplit [ 1 ];
var t = time.split ( " : " );
var UTCDate = Date.UTC ( " 20 " + s [ 2 ], s [ 1 ] - 1 , s [ 0 ], t [ 0 ] - 2 , t [ 1 ]);
var d = nueva fecha (UTCDate);
retorno d. toLocaleString ();
});

EL [ 0 ] = el .innerHTML [ 0 ] .innerHTML.replace ( " ** CET Time - UTC 0100 (Madrid, París, Bruselas) " , " ** " );

Post reply

Sign in to post a reply.