mirror of
https://github.com/correl/mage.git
synced 2024-12-28 11:14:13 +00:00
Merge pull request #8592 from Alex-Vasile/utc-time-for-elvish-house-party
Make Elvish Time Party use UTC to keep time consistent between clients.
This commit is contained in:
commit
c511de4f3b
1 changed files with 2 additions and 1 deletions
|
@ -2,6 +2,7 @@
|
|||
package mage.cards.e;
|
||||
|
||||
import java.time.LocalTime;
|
||||
import java.time.ZoneId;
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
|
@ -50,7 +51,7 @@ class CurrentHourCount implements DynamicValue {
|
|||
|
||||
@Override
|
||||
public int calculate(Game game, Ability sourceAbility, Effect effect) {
|
||||
int hour = LocalTime.now().getHour();
|
||||
int hour = LocalTime.now(ZoneId.of("UTC")).getHour();
|
||||
// convert 24-hour value to 12-hour
|
||||
if (hour > 12) {
|
||||
hour -= 12;
|
||||
|
|
Loading…
Reference in a new issue