Skip to content

Commit

Permalink
feat: local time
Browse files Browse the repository at this point in the history
  • Loading branch information
Walter-Rabbit committed Dec 2, 2022
1 parent d81788f commit e12efc3
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 16 deletions.
26 changes: 15 additions & 11 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,44 +1,48 @@
## Realeses Notes
# Realeses Notes

### 0.0.1
## 0.0.1

* Initial release.

### 0.0.2
## 0.0.2

* Using global configuration instead of local.
* Icon for Marketplace.

### 1.0.0
## 1.0.0

* Information from game by clicking widget.
* Add prompt to entering ID dialog box.

### 1.0.1
## 1.0.1

* Fix incorrect showing of hero name if it contains space.

### 1.0.2
## 1.0.2

* Stop bombing dotabuff by requests.

### 1.0.3
## 1.0.3

* Erase debug output

### 1.1.0
## 1.1.0

* Using DotaOpenApi insted of DotaBuff.

### 1.1.1
## 1.1.1

* Remove recursive calling status bar update.

### 1.1.2
## 1.1.2

* Fix bug when user can not set his id.
* Check if user dota id is correct.

### 1.1.3
## 1.1.3

* Fix bug when new user can not set dota ID.

## 1.1.4

* Local time instead of UTC.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ You may see date and time of last game in status bar. Also, you can see informat

## Realeses Notes

### 1.1.4

* Local time instead of UTC.

### 1.1.3

* Fix bug when new user can not set dota ID.
Expand Down
2 changes: 1 addition & 1 deletion dist/extension.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/extension.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "dota-extension",
"displayName": "Dota 2 Extension",
"description": "",
"version": "1.1.3",
"version": "1.1.4",
"icon": "icon.png",
"engines": {
"vscode": "^1.73.0"
Expand Down
4 changes: 2 additions & 2 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,10 @@ async function updateStatusBarItem() {
let json = JSON.parse(text)[0];
let lastGameStartDate = new Date(json['start_time'] * 1000);
let lastGameStart = `${get2Numbers(lastGameStartDate.getHours())}:${get2Numbers(lastGameStartDate.getMinutes())} ` +
`${get2Numbers(lastGameStartDate.getDay())}.${get2Numbers(lastGameStartDate.getMonth())}.` +
`${get2Numbers(lastGameStartDate.getDate())}.${get2Numbers(lastGameStartDate.getMonth() + 1)}.` +
`${lastGameStartDate.getFullYear()}`;

myStatusBarItem.text = 'Last Dota 2 game time: ' + lastGameStart;
myStatusBarItem.text = 'Last Dota 2 Game Time: ' + lastGameStart;
myStatusBarItem.show();
}
catch {
Expand Down

0 comments on commit e12efc3

Please sign in to comment.