Skip to content

Commit

Permalink
v1.2.28 更新2023年法定假日数据。
Browse files Browse the repository at this point in the history
  • Loading branch information
6tail committed Dec 9, 2022
1 parent 12a8eec commit c3082db
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ lunar是一款无第三方依赖的公历(阳历)、农历(阴历、老黄历)
<dependency>
<groupId>cn.6tail</groupId>
<artifactId>lunar</artifactId>
<version>1.2.27</version>
<version>1.2.28</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ lunar is a calendar library for Solar and Chinese Lunar.
<dependency>
<groupId>cn.6tail</groupId>
<artifactId>lunar</artifactId>
<version>1.2.27</version>
<version>1.2.28</version>
</dependency>
```

Expand Down
4 changes: 3 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<groupId>cn.6tail</groupId>
<artifactId>lunar</artifactId>
<packaging>jar</packaging>
<version>1.2.27</version>
<version>1.2.28</version>
<name>${project.groupId}:${project.artifactId}</name>
<url>https://github.com/6tail/lunar-java</url>
<description>a calendar library for Solar and Chinese Lunar</description>
Expand Down Expand Up @@ -149,7 +149,9 @@
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.2-beta-5</version>
<configuration>
<appendAssemblyId>false</appendAssemblyId>
<finalName>${project.artifactId}-${project.version}</finalName>
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/com/nlf/calendar/SolarMonth.java
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,10 @@ public List<Solar> getDays() {
public List<SolarWeek> getWeeks(int start) {
List<SolarWeek> l = new ArrayList<SolarWeek>();
SolarWeek week = SolarWeek.fromYmd(year, month, 1, start);
Solar firstDay = week.getFirstDay();
while (true) {
l.add(week);
week = week.next(1, false);
firstDay = week.getFirstDay();
Solar firstDay = week.getFirstDay();
if (firstDay.getYear() > year || firstDay.getMonth() > month) {
break;
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/nlf/calendar/util/HolidayUtil.java

Large diffs are not rendered by default.

0 comments on commit c3082db

Please sign in to comment.