Commit 96da608e authored by mercury233's avatar mercury233

fix updated_at

parent c7319465
......@@ -58,6 +58,7 @@ export class App {
homepage: string;
developers: { name: string, url: string }[];
released_at: Date;
updated_at: Date;
category: Category;
parent?: App;
......@@ -167,6 +168,7 @@ export class App {
this.description = app.description;
this.developers = app.developers;
this.released_at = app.released_at;
this.updated_at = app.updated_at;
this.author = app.author;
this.homepage = app.homepage;
this.category = Category[<string>app.category];
......
......@@ -278,6 +278,9 @@ export class AppsService {
if (app.released_at) {
app.released_at = new Date(app.released_at);
}
if (app.updated_at) {
app.updated_at = new Date(app.updated_at);
}
if (app.news) {
for (let item of app.news) {
item.updated_at = new Date(item.updated_at);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment