Update copyright from 2010 to 2011, BTW this closes "update files from 2009 to 2010" (https://issues.apache.org/jira/browse/OFBIZ-3783) - OFBIZ-3783

I have changed ModelInfo.getCopyright() in order to automatize (I believe the copyright is always valid so we don't care about the date really used, if you disagree please let me know, I have a doubt about this...)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1061886 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jacques Le Roux
2011-01-21 16:33:22 +00:00
parent 5457a40512
commit 1dab0c10f2
2 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
=========================================================================
The Apache Open For Business Project (Apache OFBiz)
Copyright 2001-2010 The Apache Software Foundation
Copyright 2001-2011 The Apache Software Foundation
=========================================================================
== Apache General Notice (Covers OFBiz and all ASF libraries) ==
@@ -18,7 +18,12 @@
*******************************************************************************/
package org.ofbiz.entity.model;
import java.util.Calendar;
import java.util.Locale;
import java.util.TimeZone;
import org.ofbiz.base.util.StringUtil;
import org.ofbiz.base.util.UtilDateTime;
import org.ofbiz.base.util.UtilXml;
import org.w3c.dom.Element;
@@ -65,7 +70,7 @@ public class ModelInfo {
@Override
public String getAuthor() { return "None"; }
@Override
public String getCopyright() { return "Copyright 2001-2009 The Apache Software Foundation"; }
public String getCopyright() { int year = UtilDateTime.getYear(UtilDateTime.nowTimestamp(), TimeZone.getDefault(), Locale.getDefault()); return "Copyright 2001-" + year + " The Apache Software Foundation"; }
@Override
public String getVersion() { return "1.0"; }
@Override