mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 21:01:34 +08:00
Dates Fix
This commit is contained in:
@ -145,9 +145,11 @@ export class SessionModel extends observable.Observable implements Session {
|
|||||||
get range(): string {
|
get range(): string {
|
||||||
var startMinutes = this.start.getMinutes() + "";
|
var startMinutes = this.start.getMinutes() + "";
|
||||||
var endMinutes = this.end.getMinutes() + "";
|
var endMinutes = this.end.getMinutes() + "";
|
||||||
|
var startAM = this.start.getHours() < 12 ? "am" : "pm";
|
||||||
|
var endAM = this.end.getHours() < 12 ? "am" : "pm";
|
||||||
|
|
||||||
return this.start.getHours() + ':' + (startMinutes.length === 1 ? '0' + startMinutes : startMinutes) +
|
return this.start.getHours() + ':' + (startMinutes.length === 1 ? '0' + startMinutes : startMinutes) + startAM +
|
||||||
' - ' + this.end.getHours() + ':' + (endMinutes.length === 1 ? '0' + endMinutes : endMinutes);
|
' - ' + this.end.getHours() + ':' + (endMinutes.length === 1 ? '0' + endMinutes : endMinutes) + endAM;
|
||||||
}
|
}
|
||||||
|
|
||||||
get canBeFavorited(): boolean {
|
get canBeFavorited(): boolean {
|
||||||
@ -208,26 +210,26 @@ var sessions: Array<SessionModel> = [
|
|||||||
}),
|
}),
|
||||||
new SessionModel({
|
new SessionModel({
|
||||||
title: "NativeScript Deep Dive",
|
title: "NativeScript Deep Dive",
|
||||||
start: new Date(2015, 5, 3, 1, 30),
|
start: new Date(2015, 5, 3, 13, 30),
|
||||||
end: new Date(2015, 5, 3, 4, 30),
|
end: new Date(2015, 5, 3, 16, 30),
|
||||||
room: "Workshop Room 1"
|
room: "Workshop Room 1"
|
||||||
}),
|
}),
|
||||||
new SessionModel({
|
new SessionModel({
|
||||||
title: "Smart Design for Smartphones",
|
title: "Smart Design for Smartphones",
|
||||||
start: new Date(2015, 5, 3, 1, 30),
|
start: new Date(2015, 5, 3, 13, 30),
|
||||||
end: new Date(2015, 5, 3, 4, 30),
|
end: new Date(2015, 5, 3, 16, 30),
|
||||||
room: "Workshop Room 2"
|
room: "Workshop Room 2"
|
||||||
}),
|
}),
|
||||||
new SessionModel({
|
new SessionModel({
|
||||||
title: "Responsive Apps with Telerik DevCraft",
|
title: "Responsive Apps with Telerik DevCraft",
|
||||||
start: new Date(2015, 5, 3, 1, 30),
|
start: new Date(2015, 5, 3, 13, 30),
|
||||||
end: new Date(2015, 5, 3, 4, 30),
|
end: new Date(2015, 5, 3, 16, 30),
|
||||||
room: "Workshop Room 3"
|
room: "Workshop Room 3"
|
||||||
}),
|
}),
|
||||||
new SessionModel({
|
new SessionModel({
|
||||||
title: "ASP .NET MVC Development in Telerik Sitefinity",
|
title: "ASP .NET MVC Development in Telerik Sitefinity",
|
||||||
start: new Date(2015, 5, 3, 1, 30),
|
start: new Date(2015, 5, 3, 13, 30),
|
||||||
end: new Date(2015, 5, 3, 4, 30),
|
end: new Date(2015, 5, 3, 16, 30),
|
||||||
room: "Workshop Room 4"
|
room: "Workshop Room 4"
|
||||||
}), new SessionModel({
|
}), new SessionModel({
|
||||||
title: "Registration",
|
title: "Registration",
|
||||||
@ -282,97 +284,97 @@ var sessions: Array<SessionModel> = [
|
|||||||
}), new SessionModel({
|
}), new SessionModel({
|
||||||
title: "Lunch",
|
title: "Lunch",
|
||||||
start: new Date(2015, 5, 4, 12, 30),
|
start: new Date(2015, 5, 4, 12, 30),
|
||||||
end: new Date(2015, 5, 4, 1, 30),
|
end: new Date(2015, 5, 4, 13, 30),
|
||||||
room: ""
|
room: ""
|
||||||
}), new SessionModel({
|
}), new SessionModel({
|
||||||
title: "Hybrid vs Native vs Web: Which is Right for Me?",
|
title: "Hybrid vs Native vs Web: Which is Right for Me?",
|
||||||
start: new Date(2015, 5, 4, 1, 30),
|
start: new Date(2015, 5, 4, 13, 30),
|
||||||
end: new Date(2015, 5, 4, 2, 15),
|
end: new Date(2015, 5, 4, 14, 15),
|
||||||
room: "Conference Room 1"
|
room: "Conference Room 1"
|
||||||
}), new SessionModel({
|
}), new SessionModel({
|
||||||
title: "AngularJS Directives For Kendo UI",
|
title: "AngularJS Directives For Kendo UI",
|
||||||
start: new Date(2015, 5, 4, 1, 30),
|
start: new Date(2015, 5, 4, 13, 30),
|
||||||
end: new Date(2015, 5, 4, 2, 15),
|
end: new Date(2015, 5, 4, 14, 15),
|
||||||
room: "Conference Room 2"
|
room: "Conference Room 2"
|
||||||
}), new SessionModel({
|
}), new SessionModel({
|
||||||
title: "Using Kendo UI in SharePoint/Office 365",
|
title: "Using Kendo UI in SharePoint/Office 365",
|
||||||
start: new Date(2015, 5, 4, 1, 30),
|
start: new Date(2015, 5, 4, 13, 30),
|
||||||
end: new Date(2015, 5, 4, 2, 15),
|
end: new Date(2015, 5, 4, 14, 15),
|
||||||
room: "Conference Room 3"
|
room: "Conference Room 3"
|
||||||
}), new SessionModel({
|
}), new SessionModel({
|
||||||
title: "Develop the Next Generation of Content-Driven Mobile Apps",
|
title: "Develop the Next Generation of Content-Driven Mobile Apps",
|
||||||
start: new Date(2015, 5, 4, 1, 30),
|
start: new Date(2015, 5, 4, 13, 30),
|
||||||
end: new Date(2015, 5, 4, 2, 15),
|
end: new Date(2015, 5, 4, 14, 15),
|
||||||
room: "Conference Room 3"
|
room: "Conference Room 3"
|
||||||
}), new SessionModel({
|
}), new SessionModel({
|
||||||
title: "PM Break",
|
title: "PM Break",
|
||||||
start: new Date(2015, 5, 4, 2, 15),
|
start: new Date(2015, 5, 4, 14, 15),
|
||||||
end: new Date(2015, 5, 4, 2, 30),
|
end: new Date(2015, 5, 4, 14, 30),
|
||||||
room: ""
|
room: ""
|
||||||
}), new SessionModel({
|
}), new SessionModel({
|
||||||
title: "AppBuilder in 45 Minutes",
|
title: "AppBuilder in 45 Minutes",
|
||||||
start: new Date(2015, 5, 4, 2, 30),
|
start: new Date(2015, 5, 4, 14, 30),
|
||||||
end: new Date(2015, 5, 4, 3, 15),
|
end: new Date(2015, 5, 16, 15, 15),
|
||||||
room: "Conference Room 1"
|
room: "Conference Room 1"
|
||||||
}), new SessionModel({
|
}), new SessionModel({
|
||||||
title: "Mastering JavaScript",
|
title: "Mastering JavaScript",
|
||||||
start: new Date(2015, 5, 4, 2, 30),
|
start: new Date(2015, 5, 4, 14, 30),
|
||||||
end: new Date(2015, 5, 4, 3, 15),
|
end: new Date(2015, 5, 16, 15, 15),
|
||||||
room: "Conference Room 2"
|
room: "Conference Room 2"
|
||||||
}), new SessionModel({
|
}), new SessionModel({
|
||||||
title: "Building Mobile Apps with Visual Studio",
|
title: "Building Mobile Apps with Visual Studio",
|
||||||
start: new Date(2015, 5, 4, 2, 30),
|
start: new Date(2015, 5, 4, 14, 30),
|
||||||
end: new Date(2015, 5, 4, 3, 15),
|
end: new Date(2015, 5, 16, 15, 15),
|
||||||
room: "Conference Room 3"
|
room: "Conference Room 3"
|
||||||
}), new SessionModel({
|
}), new SessionModel({
|
||||||
title: "Building a CRM Portal in 60 Minutes",
|
title: "Building a CRM Portal in 60 Minutes",
|
||||||
start: new Date(2015, 5, 4, 2, 30),
|
start: new Date(2015, 5, 4, 14, 30),
|
||||||
end: new Date(2015, 5, 4, 3, 15),
|
end: new Date(2015, 5, 16, 15, 15),
|
||||||
room: "Conference Room 4"
|
room: "Conference Room 4"
|
||||||
}), new SessionModel({
|
}), new SessionModel({
|
||||||
title: "NativeScript Extensibility",
|
title: "NativeScript Extensibility",
|
||||||
start: new Date(2015, 5, 4, 3, 30),
|
start: new Date(2015, 5, 4, 15, 30),
|
||||||
end: new Date(2015, 5, 4, 4, 15),
|
end: new Date(2015, 5, 4, 16, 15),
|
||||||
room: "Conference Room 1"
|
room: "Conference Room 1"
|
||||||
}), new SessionModel({
|
}), new SessionModel({
|
||||||
title: "There's a Cordova Plugin for that!",
|
title: "There's a Cordova Plugin for that!",
|
||||||
start: new Date(2015, 5, 4, 3, 30),
|
start: new Date(2015, 5, 4, 15, 30),
|
||||||
end: new Date(2015, 5, 4, 4, 15),
|
end: new Date(2015, 5, 4, 16, 15),
|
||||||
room: "Conference Room 2"
|
room: "Conference Room 2"
|
||||||
}), new SessionModel({
|
}), new SessionModel({
|
||||||
title: "AngularJS and Kendo UI",
|
title: "AngularJS and Kendo UI",
|
||||||
start: new Date(2015, 5, 4, 3, 30),
|
start: new Date(2015, 5, 4, 15, 30),
|
||||||
end: new Date(2015, 5, 4, 4, 15),
|
end: new Date(2015, 5, 4, 16, 15),
|
||||||
room: "Conference Room 3"
|
room: "Conference Room 3"
|
||||||
}), new SessionModel({
|
}), new SessionModel({
|
||||||
title: "Continuous Delivery and Telerik Sitefinity",
|
title: "Continuous Delivery and Telerik Sitefinity",
|
||||||
start: new Date(2015, 5, 4, 3, 30),
|
start: new Date(2015, 5, 4, 15, 30),
|
||||||
end: new Date(2015, 5, 4, 4, 15),
|
end: new Date(2015, 5, 4, 16, 15),
|
||||||
room: "Conference Room 4"
|
room: "Conference Room 4"
|
||||||
}), new SessionModel({
|
}), new SessionModel({
|
||||||
title: "Telerik Leadership Panel - Q&A",
|
title: "Telerik Leadership Panel - Q&A",
|
||||||
start: new Date(2015, 5, 4, 4, 30),
|
start: new Date(2015, 5, 4, 16, 30),
|
||||||
end: new Date(2015, 5, 4, 5, 15),
|
end: new Date(2015, 5, 4, 17, 15),
|
||||||
room: "Conference Room 1"
|
room: "Conference Room 1"
|
||||||
}), new SessionModel({
|
}), new SessionModel({
|
||||||
title: "Accelerate your Agile Adoption",
|
title: "Accelerate your Agile Adoption",
|
||||||
start: new Date(2015, 5, 4, 4, 30),
|
start: new Date(2015, 5, 4, 16, 30),
|
||||||
end: new Date(2015, 5, 4, 5, 15),
|
end: new Date(2015, 5, 4, 17, 15),
|
||||||
room: "Conference Room 2"
|
room: "Conference Room 2"
|
||||||
}), new SessionModel({
|
}), new SessionModel({
|
||||||
title: "No Kidding, Real World Tester/Developer Collaboration",
|
title: "No Kidding, Real World Tester/Developer Collaboration",
|
||||||
start: new Date(2015, 5, 4, 4, 30),
|
start: new Date(2015, 5, 4, 16, 30),
|
||||||
end: new Date(2015, 5, 4, 5, 15),
|
end: new Date(2015, 5, 4, 17, 15),
|
||||||
room: "Conference Room 3"
|
room: "Conference Room 3"
|
||||||
}), new SessionModel({
|
}), new SessionModel({
|
||||||
title: "Sitefinity",
|
title: "Sitefinity",
|
||||||
start: new Date(2015, 5, 4, 4, 30),
|
start: new Date(2015, 5, 4, 16, 30),
|
||||||
end: new Date(2015, 5, 4, 5, 15),
|
end: new Date(2015, 5, 4, 17, 15),
|
||||||
room: "Conference Room 4"
|
room: "Conference Room 4"
|
||||||
}), new SessionModel({
|
}), new SessionModel({
|
||||||
title: "Attendee Appreciation Party",
|
title: "Attendee Appreciation Party",
|
||||||
start: new Date(2015, 5, 4, 7, 0),
|
start: new Date(2015, 5, 4, 19, 0),
|
||||||
end: new Date(2015, 5, 4, 10, 30),
|
end: new Date(2015, 5, 4, 22, 30),
|
||||||
room: ""
|
room: ""
|
||||||
}), new SessionModel({
|
}), new SessionModel({
|
||||||
title: "Registration",
|
title: "Registration",
|
||||||
@ -427,77 +429,77 @@ var sessions: Array<SessionModel> = [
|
|||||||
}), new SessionModel({
|
}), new SessionModel({
|
||||||
title: "Lunch",
|
title: "Lunch",
|
||||||
start: new Date(2015, 5, 5, 12, 30),
|
start: new Date(2015, 5, 5, 12, 30),
|
||||||
end: new Date(2015, 5, 5, 1, 30),
|
end: new Date(2015, 5, 5, 13, 30),
|
||||||
room: ""
|
room: ""
|
||||||
}), new SessionModel({
|
}), new SessionModel({
|
||||||
title: "Performance Tuning Your Mobile Web Apps",
|
title: "Performance Tuning Your Mobile Web Apps",
|
||||||
start: new Date(2015, 5, 5, 1, 30),
|
start: new Date(2015, 5, 5, 13, 30),
|
||||||
end: new Date(2015, 5, 5, 2, 15),
|
end: new Date(2015, 5, 5, 14, 15),
|
||||||
room: "Conference Room 1"
|
room: "Conference Room 1"
|
||||||
}), new SessionModel({
|
}), new SessionModel({
|
||||||
title: "Improving Applications with Telerik Analytics",
|
title: "Improving Applications with Telerik Analytics",
|
||||||
start: new Date(2015, 5, 5, 1, 30),
|
start: new Date(2015, 5, 5, 13, 30),
|
||||||
end: new Date(2015, 5, 5, 2, 15),
|
end: new Date(2015, 5, 5, 14, 15),
|
||||||
room: "Conference Room 2"
|
room: "Conference Room 2"
|
||||||
}), new SessionModel({
|
}), new SessionModel({
|
||||||
title: "Reporting vs Dashboards vs UI Data Apps",
|
title: "Reporting vs Dashboards vs UI Data Apps",
|
||||||
start: new Date(2015, 5, 5, 1, 30),
|
start: new Date(2015, 5, 5, 13, 30),
|
||||||
end: new Date(2015, 5, 5, 2, 15),
|
end: new Date(2015, 5, 5, 14, 15),
|
||||||
room: "Conference Room 3"
|
room: "Conference Room 3"
|
||||||
}), new SessionModel({
|
}), new SessionModel({
|
||||||
title: "Modern MVC and Front-End Development with Telerik Sitefinity",
|
title: "Modern MVC and Front-End Development with Telerik Sitefinity",
|
||||||
start: new Date(2015, 5, 5, 1, 30),
|
start: new Date(2015, 5, 5, 13, 30),
|
||||||
end: new Date(2015, 5, 5, 2, 15),
|
end: new Date(2015, 5, 5, 14, 15),
|
||||||
room: "Conference Room 4"
|
room: "Conference Room 4"
|
||||||
}), new SessionModel({
|
}), new SessionModel({
|
||||||
title: "PM Break",
|
title: "PM Break",
|
||||||
start: new Date(2015, 5, 5, 2, 15),
|
start: new Date(2015, 5, 5, 14, 15),
|
||||||
end: new Date(2015, 5, 5, 2, 30),
|
end: new Date(2015, 5, 5, 14, 30),
|
||||||
room: ""
|
room: ""
|
||||||
}), new SessionModel({
|
}), new SessionModel({
|
||||||
title: "Telerik Native Mobile UI for iOS and Android",
|
title: "Telerik Native Mobile UI for iOS and Android",
|
||||||
start: new Date(2015, 5, 5, 2, 30),
|
start: new Date(2015, 5, 5, 14, 30),
|
||||||
end: new Date(2015, 5, 5, 3, 15),
|
end: new Date(2015, 5, 17, 15, 15),
|
||||||
room: "Conference Room 1"
|
room: "Conference Room 1"
|
||||||
}), new SessionModel({
|
}), new SessionModel({
|
||||||
title: "IoT and the Telerik Platform",
|
title: "IoT and the Telerik Platform",
|
||||||
start: new Date(2015, 5, 5, 2, 30),
|
start: new Date(2015, 5, 5, 14, 30),
|
||||||
end: new Date(2015, 5, 5, 3, 15),
|
end: new Date(2015, 5, 17, 15, 15),
|
||||||
room: "Conference Room 2"
|
room: "Conference Room 2"
|
||||||
}), new SessionModel({
|
}), new SessionModel({
|
||||||
title: "Debugging with Fiddler",
|
title: "Debugging with Fiddler",
|
||||||
start: new Date(2015, 5, 5, 2, 30),
|
start: new Date(2015, 5, 5, 14, 30),
|
||||||
end: new Date(2015, 5, 5, 3, 15),
|
end: new Date(2015, 5, 17, 15, 15),
|
||||||
room: "Conference Room 3"
|
room: "Conference Room 3"
|
||||||
}), new SessionModel({
|
}), new SessionModel({
|
||||||
title: "Anticipating & Planning of Peak Online Traffic for Professional Football's Biggest Games",
|
title: "Anticipating & Planning of Peak Online Traffic for Professional Football's Biggest Games",
|
||||||
start: new Date(2015, 5, 5, 2, 30),
|
start: new Date(2015, 5, 5, 14, 30),
|
||||||
end: new Date(2015, 5, 5, 3, 15),
|
end: new Date(2015, 5, 17, 15, 15),
|
||||||
room: "Conference Room 4"
|
room: "Conference Room 4"
|
||||||
}), new SessionModel({
|
}), new SessionModel({
|
||||||
title: "Building a Mobile App API using MongoDB and Node.js",
|
title: "Building a Mobile App API using MongoDB and Node.js",
|
||||||
start: new Date(2015, 5, 5, 3, 30),
|
start: new Date(2015, 5, 5, 15, 30),
|
||||||
end: new Date(2015, 5, 5, 4, 15),
|
end: new Date(2015, 5, 5, 16, 15),
|
||||||
room: "Conference Room 1"
|
room: "Conference Room 1"
|
||||||
}), new SessionModel({
|
}), new SessionModel({
|
||||||
title: "Advanced Kendo UI",
|
title: "Advanced Kendo UI",
|
||||||
start: new Date(2015, 5, 5, 3, 30),
|
start: new Date(2015, 5, 5, 15, 30),
|
||||||
end: new Date(2015, 5, 5, 4, 15),
|
end: new Date(2015, 5, 5, 16, 15),
|
||||||
room: "Conference Room 2"
|
room: "Conference Room 2"
|
||||||
}), new SessionModel({
|
}), new SessionModel({
|
||||||
title: "Building Touch Apps with UI for WPF",
|
title: "Building Touch Apps with UI for WPF",
|
||||||
start: new Date(2015, 5, 5, 3, 30),
|
start: new Date(2015, 5, 5, 15, 30),
|
||||||
end: new Date(2015, 5, 5, 4, 15),
|
end: new Date(2015, 5, 5, 16, 15),
|
||||||
room: "Conference Room 3"
|
room: "Conference Room 3"
|
||||||
}), new SessionModel({
|
}), new SessionModel({
|
||||||
title: "Making the Most Out of Sitefinity Personalization",
|
title: "Making the Most Out of Sitefinity Personalization",
|
||||||
start: new Date(2015, 5, 5, 3, 30),
|
start: new Date(2015, 5, 5, 15, 30),
|
||||||
end: new Date(2015, 5, 5, 4, 15),
|
end: new Date(2015, 5, 5, 16, 15),
|
||||||
room: "Conference Room 4"
|
room: "Conference Room 4"
|
||||||
}), new SessionModel({
|
}), new SessionModel({
|
||||||
title: "Closing Keynote",
|
title: "Closing Keynote",
|
||||||
start: new Date(2015, 5, 5, 4, 30),
|
start: new Date(2015, 5, 5, 16, 30),
|
||||||
end: new Date(2015, 5, 5, 5, 15),
|
end: new Date(2015, 5, 5, 17, 15),
|
||||||
room: "General Session"
|
room: "General Session"
|
||||||
})];
|
})];
|
||||||
|
|
||||||
|
@ -14,7 +14,9 @@
|
|||||||
<Label.formattedText>
|
<Label.formattedText>
|
||||||
<FormattedString>
|
<FormattedString>
|
||||||
<FormattedString.spans>
|
<FormattedString.spans>
|
||||||
<Span text="{{ range + ',' + room }}" fontAttributes="Bold" />
|
<Span text="{{ range}}" fontAttributes="Bold" />
|
||||||
|
<Span text=", " fontAttributes="Bold" />
|
||||||
|
<Span text="{{ room }}" fontAttributes="Bold" />
|
||||||
</FormattedString.spans>
|
</FormattedString.spans>
|
||||||
</FormattedString>
|
</FormattedString>
|
||||||
</Label.formattedText>
|
</Label.formattedText>
|
||||||
@ -27,14 +29,15 @@
|
|||||||
|
|
||||||
|
|
||||||
<!-- Description -->
|
<!-- Description -->
|
||||||
<Label cssClass="info" textWrap="true" row="1" col="1" text="Here is the description. Here is the description. Here is the description. Here is the description. Here is the description. Here is the description. Here is the description. " />
|
<Label cssClass="info" textWrap="true" row="1" col="1" margin="10 5 5 10"
|
||||||
|
text="Here is the description. Here is the description. Here is the description. Here is the description. Here is the description. Here is the description. Here is the description. " />
|
||||||
|
|
||||||
<!-- Line -->
|
<!-- Line -->
|
||||||
<StackLayout cssClass="horizontalLine" row="2" col="1"/>
|
<StackLayout cssClass="horizontalLine" row="2" col="1"/>
|
||||||
|
|
||||||
<!-- Speakers -->
|
<!-- Speakers -->
|
||||||
<Label text="Speakers" cssClass="section-header" row="3" col="1" />
|
<Label text="Speakers" cssClass="section-header" row="3" col="1" />
|
||||||
<ListView items="{{ speakers }}" row="4" colSpan="2" height="{{ speakers.length * 70 }}" selectedBackgroundColor="#fac950" separatorColor="#FFFFFF">
|
<ListView items="{{ speakers }}" row="4" colSpan="2" height="{{ speakers.length * 76 }}" selectedBackgroundColor="#fac950" separatorColor="#FFFFFF">
|
||||||
<ListView.itemTemplate>
|
<ListView.itemTemplate>
|
||||||
<GridLayout columns="70, *" cssClass="list-view-row">
|
<GridLayout columns="70, *" cssClass="list-view-row">
|
||||||
<Image src="{{ picture }}" verticalAlignment="top"/>
|
<Image src="{{ picture }}" verticalAlignment="top"/>
|
||||||
|
Reference in New Issue
Block a user