Changed more data parameters around, hopefully works this time

master
YandolsZX 3 years ago
parent f1047a8cf8
commit e65166ef0a
  1. 2
      index.php
  2. 2
      servertime.php

@ -12,7 +12,7 @@ $(document).ready(function() {
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
url: 'servertime.php', url: 'servertime.php',
data: { server: ru-general }, data: { 'server': 'ru_general' },
timeout: 1000, timeout: 1000,
success: function(data) { success: function(data) {
$("#timer").html(data); $("#timer").html(data);

@ -13,7 +13,7 @@ echo '<br>';
echo $data['server']; echo $data['server'];
// If client requested datetime for Rocknarok Universe (General Timezone). // If client requested datetime for Rocknarok Universe (General Timezone).
if ($data['server'] == 'ru-general') { if ($data['server'] == 'ru_general') {
// Set current datetime of Rocknarok Universe. // Set current datetime of Rocknarok Universe.
$rutime=date_create(); $rutime=date_create();

Loading…
Cancel
Save