Permalink
Browse files

os.time() and os.day() join the "Finally Case-Insensitive Party"

  • Loading branch information...
Luca0208 committed Apr 7, 2018
1 parent abd80d3 commit 647e72fef3ac4fa2d2f719520404e57342ed7f3a
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/main/java/dan200/computercraft/core/apis/OSAPI.java
@@ -303,7 +303,7 @@ private long getEpochForCalendar(Calendar c)
{
// time
String param = optString( args, 0, "ingame" );
switch( param )
switch( param.toLowerCase( Locale.ENGLISH ) )
{
case "utc":
{
@@ -331,7 +331,7 @@ private long getEpochForCalendar(Calendar c)
{
// day
String param = optString( args, 0, "ingame" );
switch( param )
switch( param.toLowerCase( Locale.ENGLISH ) )
{
case "utc":
{
@@ -385,7 +385,7 @@ private long getEpochForCalendar(Calendar c)
{
// epoch
String param = optString( args, 0, "ingame" );
switch( param.toLowerCase() )
switch( param.toLowerCase( Locale.ENGLISH ) )
{
case "utc":
{

0 comments on commit 647e72f

Please sign in to comment.