From 1dab0c10f2d2ffd8ac69a74ef7f1c27d4e7b7c20 Mon Sep 17 00:00:00 2001 From: Jacques Le Roux Date: Fri, 21 Jan 2011 16:33:22 +0000 Subject: [PATCH] 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 --- NOTICE | 2 +- framework/entity/src/org/ofbiz/entity/model/ModelInfo.java | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/NOTICE b/NOTICE index 1c4597ec10..b65173f30e 100644 --- a/NOTICE +++ b/NOTICE @@ -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) == diff --git a/framework/entity/src/org/ofbiz/entity/model/ModelInfo.java b/framework/entity/src/org/ofbiz/entity/model/ModelInfo.java index 1de563f0b6..1a6b6a6374 100644 --- a/framework/entity/src/org/ofbiz/entity/model/ModelInfo.java +++ b/framework/entity/src/org/ofbiz/entity/model/ModelInfo.java @@ -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