Précédent   Forum des professionnels en informatique > Logiciels > Solutions d'entreprise > Business Intelligence > BIRT
BIRT Forum d'entraide sur BIRT (Business Intelligence and Reporting Tools). Avant de poster --> FAQ BIRT,Tutoriels BIRT
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 28/02/2011, 16h30   #1
Membre régulier
 
Avatar de GAEREL
 
Homme Frédéric Gaërel
Inscription : février 2005
Messages : 125
Détails du profil
Informations personnelles :
Nom : Homme Frédéric Gaërel
Âge : 46
Localisation : France

Informations forums :
Inscription : février 2005
Messages : 125
Points : 75
Points : 75
Par défaut [2.5.2] Décalage d'une heure sur certaines données

Bonjour à tous.

J'ai une table test sous Oracle remplie comme suit :
Citation:
PROJET MOIS VALEUR
--------- ------------------- ---------
Projet 1 01/01/2010 00:00:00 1
Projet 1 01/02/2010 00:00:00 2
Projet 1 01/03/2010 00:00:00 3
Projet 1 01/04/2010 00:00:00 4
Projet 1 01/05/2010 00:00:00 5
Projet 1 01/06/2010 00:00:00 6
Projet 1 01/07/2010 00:00:00 7
Projet 1 01/08/2010 00:00:00 8
Projet 1 01/09/2010 00:00:00 9
Projet 1 01/10/2010 00:00:00 10
Projet 1 01/11/2010 00:00:00 11
Projet 1 01/12/2010 00:00:00 12
Projet 2 01/01/2010 00:00:00 13
Projet 2 01/04/2010 00:00:00 14
Projet 2 01/07/2010 00:00:00 15
Projet 2 01/10/2010 00:00:00 16
Projet 3 01/10/2010 00:00:00 17
Projet 4 01/11/2010 00:00:00 18
Notez que toutes les dates sont au 1er du mois avec hh:mm:ss à 0 systématiquement.

Je crée un dataset simple (SELECT PROJET, MOIS, VALEUR FROM TEST)
En previsualisation j'ai les données suivantes :
Citation:
PROJET MOIS VALEUR
Projet 1 Jan 1, 2010 12:00 AM 1
Projet 1 Feb 1, 2010 12:00 AM 2
Projet 1 Mar 1, 2010 12:00 AM 3
Projet 1 Apr 1, 2010 12:00 AM 4
Projet 1 May 1, 2010 12:00 AM 5
Projet 1 Jun 1, 2010 12:00 AM 6
Projet 1 Jul 1, 2010 12:00 AM 7
Projet 1 Aug 1, 2010 12:00 AM 8
Projet 1 Sep 1, 2010 12:00 AM 9
Projet 1 Oct 1, 2010 12:00 AM 10
Projet 1 Nov 1, 2010 12:00 AM 11
Projet 1 Dec 1, 2010 12:00 AM 12
Projet 2 Jan 1, 2010 12:00 AM 13
Projet 2 Apr 1, 2010 12:00 AM 14
Projet 2 Jul 1, 2010 12:00 AM 15
Projet 2 Oct 1, 2010 12:00 AM 16
Projet 3 Oct 1, 2010 12:00 AM 17
Projet 4 Nov 1, 2010 12:00 AM 18
Ce qui est encore correct.
Il ne me reste plus qu'à glisser ce dataset dans ma page (création automatique d'une table)

A l'éxécution (toujours à partir d'Eclipse via le bouton "view report") j'obtiens ceci :
Citation:
PROJET MOIS VALEUR
Projet 1 1 janv. 2010 00:00 1
Projet 1 1 févr. 2010 00:00 2
Projet 1 1 mars 2010 00:00 3
Projet 1 31 mars 2010 23:00 4
Projet 1 30 avr. 2010 23:00 5
Projet 1 31 mai 2010 23:00 6
Projet 1 30 juin 2010 23:00 7
Projet 1 31 juil. 2010 23:00 8
Projet 1 31 août 2010 23:00 9
Projet 1 30 sept. 2010 23:00 10
Projet 1 1 nov. 2010 00:00 11
Projet 1 1 déc. 2010 00:00 12
Projet 2 1 janv. 2010 00:00 13
Projet 2 31 mars 2010 23:00 14
Projet 2 30 juin 2010 23:00 15
Projet 2 30 sept. 2010 23:00 16
Projet 3 30 sept. 2010 23:00 17
Projet 4 1 nov. 2010 00:00 18
étonnant non ?
Pourquoi certaines dates sont elles décalées d'une heure ? (et pas toutes !!!)
Cela est inutilisable dans un datacube par exemple puisque les totaux ne se font plus correctement...

Où est mon erreur ?

Merci de votre aide.
Cordialement
Fred
GAEREL est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 28/02/2011, 16h43   #2
BiM
Modératrice
 
Avatar de BiM
 
Femme
Consultante/Formatrice BIRT & Ingénieur Java/J2EE/GWT
Inscription : janvier 2005
Messages : 7 299
Détails du profil
Informations personnelles :
Sexe : Femme
Âge : 26
Localisation : France, Haute Garonne (Midi Pyrénées)

Informations professionnelles :
Activité : Consultante/Formatrice BIRT & Ingénieur Java/J2EE/GWT

Informations forums :
Inscription : janvier 2005
Messages : 7 299
Points : 8 650
Points : 8 650
Je comprends... Une histoire de Timezone peut être ?
__________________
__~{@ BiM - Modératrice "Business Intelligence" @}~
Consultante/Formatrice BIRT & Ingénieur Java/J2EE/GWT
___________.~{@ Lapine crétine @}~
BiM est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 28/02/2011, 16h45   #3
Membre régulier
 
Avatar de GAEREL
 
Homme Frédéric Gaërel
Inscription : février 2005
Messages : 125
Détails du profil
Informations personnelles :
Nom : Homme Frédéric Gaërel
Âge : 46
Localisation : France

Informations forums :
Inscription : février 2005
Messages : 125
Points : 75
Points : 75
Si c'est un problème de Timezone, pourquoi n'est il pas systématique ?
Pourquoi certaines données restent elles correctes ?

Merci de ta réponse rapide néanmoins...
GAEREL est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 28/02/2011, 17h02   #4
Membre régulier
 
Avatar de GAEREL
 
Homme Frédéric Gaërel
Inscription : février 2005
Messages : 125
Détails du profil
Informations personnelles :
Nom : Homme Frédéric Gaërel
Âge : 46
Localisation : France

Informations forums :
Inscription : février 2005
Messages : 125
Points : 75
Points : 75
Après quelques tests de modification de Timezone (Windows/preferences/Report design/Preview) :
toutes les valeurs se décalent d'une ou deux heures dans le même sens (logique)
Mais certaines restent décalées à -1h par rapport aux autres...


le pb reste d'actualité.
GAEREL est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 28/02/2011, 17h08   #5
BiM
Modératrice
 
Avatar de BiM
 
Femme
Consultante/Formatrice BIRT & Ingénieur Java/J2EE/GWT
Inscription : janvier 2005
Messages : 7 299
Détails du profil
Informations personnelles :
Sexe : Femme
Âge : 26
Localisation : France, Haute Garonne (Midi Pyrénées)

Informations professionnelles :
Activité : Consultante/Formatrice BIRT & Ingénieur Java/J2EE/GWT

Informations forums :
Inscription : janvier 2005
Messages : 7 299
Points : 8 650
Points : 8 650
Alors un problème de transformation de date d'un format Oracle à un format Java peut être ?

Essaye d'afficher tes dates avec un SimpleDateFormat sans passer par le formattage BIRT.
__________________
__~{@ BiM - Modératrice "Business Intelligence" @}~
Consultante/Formatrice BIRT & Ingénieur Java/J2EE/GWT
___________.~{@ Lapine crétine @}~
BiM est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 28/02/2011, 17h56   #6
Membre régulier
 
Avatar de GAEREL
 
Homme Frédéric Gaërel
Inscription : février 2005
Messages : 125
Détails du profil
Informations personnelles :
Nom : Homme Frédéric Gaërel
Âge : 46
Localisation : France

Informations forums :
Inscription : février 2005
Messages : 125
Points : 75
Points : 75
J'ai continué mes tests avec les timezone...

En effet le pb était là.
Bizarrement si j'utilise la timezone "CET" les données sont correctes.
Si j'utilise "GMT+quelquechose" (ce qui était le cas, j'étais en GMT+1) le problème apparait.

Je résous donc mon cas en utilisant systématiquement "CET".
Je note comme corrigé.

Mais ca sent le bug dans BIRT non ?
Si quelqu'un a une explication logique, je suis preneur.
Merci
GAEREL est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 01/03/2011, 07h56   #7
BiM
Modératrice
 
Avatar de BiM
 
Femme
Consultante/Formatrice BIRT & Ingénieur Java/J2EE/GWT
Inscription : janvier 2005
Messages : 7 299
Détails du profil
Informations personnelles :
Sexe : Femme
Âge : 26
Localisation : France, Haute Garonne (Midi Pyrénées)

Informations professionnelles :
Activité : Consultante/Formatrice BIRT & Ingénieur Java/J2EE/GWT

Informations forums :
Inscription : janvier 2005
Messages : 7 299
Points : 8 650
Points : 8 650
Ahahaha, j'ai trouvé l'explication. Ceci correspond au décalage heure d'été/heure d'hiver.

CET = Central European Time (avec le décalage horaire = GMT +1 ou +2 selon le jour)
GMT = Greenwich Mean Time (ne tient pas compte de l'heure d'été/hiver)
__________________
__~{@ BiM - Modératrice "Business Intelligence" @}~
Consultante/Formatrice BIRT & Ingénieur Java/J2EE/GWT
___________.~{@ Lapine crétine @}~
BiM est déconnecté   Envoyer un message privé Réponse avec citation 10
Vieux 01/03/2011, 09h04   #8
Membre régulier
 
Avatar de GAEREL
 
Homme Frédéric Gaërel
Inscription : février 2005
Messages : 125
Détails du profil
Informations personnelles :
Nom : Homme Frédéric Gaërel
Âge : 46
Localisation : France

Informations forums :
Inscription : février 2005
Messages : 125
Points : 75
Points : 75
Alors là, respect.

Merci.
Fred
GAEREL est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité Cette discussion est résolue.
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 14h22.


 
 
 
 
Partenaires

Hébergement Web