Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
 
Go Back   Zimbra - Forums > Zimbra Collaboration Suite > Zimlets

Welcome to the Zimbra - Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-25-2008, 07:46 AM
Advanced Member
 
Posts: 214
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
Reply With Quote
  #2 (permalink)  
Old 10-04-2009, 04:00 AM
Senior Member
 
Posts: 65
Default

I couldnt find the respctive lins the date.js file.. plz help
Reply With Quote
  #3 (permalink)  
Old 10-05-2009, 07:37 AM
Advanced Member
 
Posts: 214
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.
Reply With Quote
Reply


Thread Tools
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

Zimbrablog.com




 

Search Engine Optimization by vBSEO 3.1.0