JSGantt has wrong date format for my timezone

RT 3.3.8
bestpractical-rt-extension-jsgantt-d1cacc1

Hi,

I installed JSGantt a while ago but don’t really use it because the date
format is around the wrong way (in Australia we use DD/MM/CCYY not
MM/DD/CCYY).

Maybe I missed something during install?

Anyway, I recently took another look at the setup and decided to change
the java script jsgannt.js so that vDateInputFormat is “dd/mm/yyyy” (see
diff below) but I still can’t make any sense of the dates being
displayed. What is the correct way to set the date format for JSGantt?

*** jsgantt.js 2010/11/24 01:59:26 1.1
— jsgantt.js 2011/04/04 06:26:11
*** 567,571 ****

  • @default “mm/dd/yyyy”

  • @private
    ! /var vDateInputFormat = “mm/dd/yyyy”;
    /
    *

  • Date display format
    — 567,571 ----

  • @default “mm/dd/yyyy”

  • @private
    ! /var vDateInputFormat = “dd/mm/yyyy”;
    /
    *

  • Date display format
    *** 574,578 ****

  • @default “mm/dd/yy”

  • @private
    ! */var vDateDisplayFormat = “mm/dd/yy”;

      var vNumUnits  = 0;
    

— 574,578 ----

  • @default “mm/dd/yy”

  • @private
    ! */var vDateDisplayFormat = “dd/mm/yy”;

      var vNumUnits  = 0;
    

Tom Robinson
System Administrator

MoTeC

121 Merrindale Drive
Croydon South
3136 Victoria
Australia

T: +61 3 9761 5050
F: +61 3 9761 5051
E: tom.robinson@motec.com.au

signature.asc (253 Bytes)

I’m really not sure what happened here. I sent a message to the rt-users
list; that got forwarded to an ‘appropriate queue on rt.cpan.org’. I
tried searching there but don’t find anything. Sorry, but I don’t know
what is going on…On 15/04/11 11:20, Ruslan Zakirov wrote:

Sent to appropriate queue on rt.cpan.org http://rt.cpan.org.

---------- Forwarded message ----------
From: Tom Robinson <tom.robinson@motec.com.au
mailto:tom.robinson@motec.com.au>
Date: Fri, Apr 15, 2011 at 4:28 AM
Subject: [rt-users] JSGantt has wrong date format for my timezone
To: rt-users@lists.bestpractical.com
mailto:rt-users@lists.bestpractical.com

RT 3.3.8
bestpractical-rt-extension-jsgantt-d1cacc1

Hi,

I installed JSGantt a while ago but don’t really use it because the
date format is around the wrong way (in Australia we use DD/MM/CCYY
not MM/DD/CCYY).

Maybe I missed something during install?

Anyway, I recently took another look at the setup and decided to
change the java script jsgannt.js so that vDateInputFormat is
"dd/mm/yyyy" (see diff below) but I still can’t make any sense of the
dates being displayed. What is the correct way to set the date format
for JSGantt?

*** jsgantt.js 2010/11/24 01:59:26 1.1
— jsgantt.js 2011/04/04 06:26:11


*** 567,571 ****

  • @default “mm/dd/yyyy”
  • @private
    ! /var vDateInputFormat = “mm/dd/yyyy”;
    /
    *
  • Date display format
    — 567,571 ----
  • @default “mm/dd/yyyy”
  • @private
    ! /var vDateInputFormat = “dd/mm/yyyy”;
    /
    *
  • Date display format

*** 574,578 ****

  • @default “mm/dd/yy”

  • @private
    ! */var vDateDisplayFormat = “mm/dd/yy”;

      var vNumUnits  = 0;
    

— 574,578 ----

  • @default “mm/dd/yy”

  • @private
    ! */var vDateDisplayFormat = “dd/mm/yy”;

      var vNumUnits  = 0;
    

Tom Robinson
System Administrator

MoTeC

121 Merrindale Drive
Croydon South
3136 Victoria
Australia

T: +61 3 9761 5050
F: +61 3 9761 5051
E: tom.robinson@motec.com.au mailto:tom.robinson@motec.com.au


Best regards, Ruslan.

signature.asc (253 Bytes)

http://rt.cpan.org/Public/Dist/Display.html?Name=RT-Extension-JSGanttOn Fri, Apr 15, 2011 at 9:04 AM, Tom Robinson tom.robinson@motec.com.auwrote:

I’m really not sure what happened here. I sent a message to the rt-users
list; that got forwarded to an ‘appropriate queue on rt.cpan.org’. I tried
searching there but don’t find anything. Sorry, but I don’t know what is
going on…

On 15/04/11 11:20, Ruslan Zakirov wrote:

Sent to appropriate queue on rt.cpan.org.

---------- Forwarded message ----------
From: Tom Robinson tom.robinson@motec.com.au
Date: Fri, Apr 15, 2011 at 4:28 AM
Subject: [rt-users] JSGantt has wrong date format for my timezone
To: rt-users@lists.bestpractical.com

RT 3.3.8
bestpractical-rt-extension-jsgantt-d1cacc1

Hi,

I installed JSGantt a while ago but don’t really use it because the date
format is around the wrong way (in Australia we use DD/MM/CCYY not
MM/DD/CCYY).

Maybe I missed something during install?

Anyway, I recently took another look at the setup and decided to change the
java script jsgannt.js so that vDateInputFormat is “dd/mm/yyyy” (see diff
below) but I still can’t make any sense of the dates being displayed. What
is the correct way to set the date format for JSGantt?

*** jsgantt.js 2010/11/24 01:59:26 1.1
— jsgantt.js 2011/04/04 06:26:11


*** 567,571 ****

  • @default “mm/dd/yyyy”
  • @private
    ! /var vDateInputFormat = “mm/dd/yyyy”;
    /
    *
  • Date display format
    — 567,571 ----
  • @default “mm/dd/yyyy”
  • @private
    ! /var vDateInputFormat = “dd/mm/yyyy”;
    /
    *
  • Date display format

*** 574,578 ****

  • @default “mm/dd/yy”

  • @private
    ! */var vDateDisplayFormat = “mm/dd/yy”;

      var vNumUnits  = 0;
    

— 574,578 ----

  • @default “mm/dd/yy”

  • @private
    ! */var vDateDisplayFormat = “dd/mm/yy”;

      var vNumUnits  = 0;
    

Tom Robinson
System Administrator
[image: MoTeC]

121 Merrindale Drive
Croydon South
3136 Victoria
Australia

T: +61 3 9761 5050
F: +61 3 9761 5051
E: tom.robinson@motec.com.au


Best regards, Ruslan.

Best regards, Ruslan.