Results 1 to 3 of 3

Thread: [SOLVED] I've got the date zimlet to work with British format

  1. #1
    Mike Scholes is offline Advanced Member
    Join Date
    Dec 2007
    Posts
    238
    Rep Power
    7

    Default [SOLVED] I've got the date zimlet to work with British format

    For those fellow Brits out there I have a quick fix so that dates in email in the format dd/mm/yyyy and variants display the correct date in the popup

    file name: /opt/zimbra/jetty-6.1.5/webapps/service/zimlet/com_zimbra_date/date.js

    In function ZmDate7ObjectHandler

    Change

    var month = parseInt(result[1], 10) - 1;
    var dom = parseInt(result[2], 10);

    To

    var month = parseInt(result[2], 10) - 1;
    var dom = parseInt(result[1], 10);

    I just swapped the [1] and [2] around

    You might also want to change ZmDate5ObjectHandler if you want to catch 25-1-2008 (dash format)

    Restart zimbra for it to work

  2. #2
    tiarra is offline Senior Member
    Join Date
    Apr 2009
    Posts
    70
    Rep Power
    6

    Default

    I couldnt find the respctive lins the date.js file.. plz help

  3. #3
    Mike Scholes is offline Advanced Member
    Join Date
    Dec 2007
    Posts
    238
    Rep Power
    7

    Default

    I think things have all changed now since the version I was working with including the config files. The newer versions of Zimbra (I'm on 6) don't seem to have British date problems.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 21
    Last Post: 02-04-2010, 10:06 AM
  2. Zimbra fails after working for 2 weeks
    By Linsys in forum Administrators
    Replies: 10
    Last Post: 10-07-2008, 12:42 AM
  3. Post instsallation problems
    By Assaf in forum Installation
    Replies: 14
    Last Post: 01-29-2007, 11:38 AM
  4. Date Zimlet speaks French
    By cvidal in forum I18N/L10N - Translations
    Replies: 4
    Last Post: 10-20-2006, 02:32 AM
  5. Replies: 1
    Last Post: 08-11-2006, 07:53 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •