Explorar o código

fix dynamic timezone change

Adam Shaw %!s(int64=8) %!d(string=hai) anos
pai
achega
9db2d02eef
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      src/models/EventManager.js

+ 2 - 1
src/models/EventManager.js

@@ -19,7 +19,8 @@ var EventManager = Class.extend(EmitterMixin, ListenerMixin, {
 		if (
 			force ||
 			!this.currentPeriod ||
-			!this.currentPeriod.isWithinRange(start, end)
+			!this.currentPeriod.isWithinRange(start, end) ||
+			timezone !== this.currentPeriod.timezone
 		) {
 			this.setPeriod( // will change this.currentPeriod
 				new EventPeriod(start, end, timezone)