Loading...
Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon
TUTORIAL

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

VisualizationsForVaadin issue

Jing Xue
1 decade ago May 01, 2010 2:28am

Hi,

I discovered an issue in VisualizationsForVaadin that prevented AnnotatedTimeLine from working properly. The date format string seems to have caused the dates to be incorrectly rendered on the chart. The patch below would fix it. How do I submit it?

Thanks.
--
JX

diff --git a/src/org/vaadin/vaadinvisualizations/AnnotatedTimeLine.java b/src/org/vaadin/vaadinvisualizations/AnnotatedTimeLine.java
index 99cba87..4707af0 100644
--- a/src/org/vaadin/vaadinvisualizations/AnnotatedTimeLine.java
+++ b/src/org/vaadin/vaadinvisualizations/AnnotatedTimeLine.java
@@ -44,7 +44,7 @@ public class AnnotatedTimeLine extends VisualizationComponent{
public void add(Calendar date, ArrayList<AnnotatedTimeLineEntry> timeLineEntries) {

String[] stringLineValues = new String[(timeLineEntries.size() * 3) +1];
- SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-DD");
+ SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");

stringLineValues[0] = sdf.format(date.getTime());

Marc Englund
1 decade ago May 04, 2010 12:41pm
Phil Barrett
1 decade ago May 05, 2010 9:11pm
Phil Barrett
1 decade ago May 09, 2010 4:34pm